【问题标题】:Capture Shake Gesture when app is in background or in killed state Android as well iOS当应用程序处于后台或处于终止状态时捕获摇动手势 Android 以及 iOS
【发布时间】:2017-01-20 13:34:17
【问题描述】:

我正在实现一个应用程序,我想在用户摇动手机时向朋友发送通知。即使应用程序在后台运行,这也应该有效。有人可以帮忙出主意吗

【问题讨论】:

    标签: titanium appcelerator appcelerator-titanium titanium-alloy


    【解决方案1】:

    在 iOS 上这根本不可能,因为当应用在后台时您不会收到此类事件。

    现在可以在 Android 上使用,因为 Titanium 不支持它。但是,它可以在 Android (as demonstrated by this answer on SO) 上原生使用。

    您可以按照guidesdocs 将此功能包装在一个模块中。

    祝你好运。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-01
      • 1970-01-01
      • 2015-08-31
      相关资源
      最近更新 更多