我试图实施一种解决方法,以从Apple Watch应用程序对应物中打开我的iPhone应用程序。从配对的苹果手表启动iPhone应用程序
这里是我的使用情况进行通知这样做:当用户拿起手表上的按钮
Watch displays an available deal with a CTA button to see details on Phone
--------------------------
New rates options published!
check details on phone
<Button>
---------------------------
,用户获得本地通知 配对手机上的“Checkout的新汇率选项“
在选择本地通知时,将启动显示详细信息的应用程序。
我的做法是:
**On watch:**
call *openParentApplication:reply:* ...this will open the iOS app in the background
**On app:**
In *application:handleWatchKitExtensionRequest:reply:*
...which is called on the iOS app when opened in background, trigger a local notification
**User:**
User picks the local notification to bring app to the foreground
将这项工作?如果是这样,我如何从后台运行的应用程序触发即时本地通知?
最后一个问题:有没有一种(合法)的方式来做到这一点,而不需要本地通知(一个不会被应用商店拒绝)?
当然 - 应该考虑切换!感谢指针!会试试这个。 – CoolDocMan