简体   繁体   English

本地/推送通知和启动应用

[英]Local/Push-Notification and launch app

I have faced problem in below scenario. 我在以下情况下遇到了问题。

1) App is in background. 1)应用程序在后台。

2) Push notification. 2)推送通知。

3) Launch app as per as push notification's text.(For the launch app i have use custom URL scheme) 3)根据推送通知的文本启动应用程序(对于启动应用程序,我使用自定义URL方案)

Eq.I have register push notification in A.ipa and wants launch B.ipa via pushnotification. Eq.I有登记A.ipa推送通知,并希望通过pushnotification推出B.ipa。

Is it possible to launch application from Local/Push-Notification(iOS7) ? 是否可以从本地/推送通知(iOS7)启动应用程序?

or 要么

Is there any other way to communicate with background app and launch other app? 还有其他与后台应用程序通信并启动其他应用程序的方法吗?

Thanks, 谢谢,

Yes , it is possible to launch application from Local/Push-Notification. 是的 ,可以从本地/推送通知启动应用程序。 Actually, this is the default behavior. 实际上,这是默认行为。

Prior to iOS7 , notifications were all "verbose", meaning that the user is presented an alert view which allows him to launch the app if he wants, or to dismiss the notification, leaving the application unaware. iOS7之前,通知都是“冗长的”,这意味着向用户显示了一个警报视图,该警报视图允许他在需要时启动应用程序,或者关闭通知,从而使应用程序不知道。 iOS7 has introduced silent push notifications, which launch the application without user interaction. iOS7引入了静默推送通知,无需用户交互即可启动应用程序。

Use URLSchemes to launch another App( B ) from your App( A ). 使用URLSchemes从您的应用程序( A )中启动另一个应用程序( B )。 But B App should be registered with URL Schemes. 但是B App应该在URL Schemes中注册。

You can search for URL Schemes and go through the tutorials available. 您可以搜索URL方案并浏览可用的教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM