[英]how to allow autostart permission like whatapp app for ionic application
I have an application developed with ionic now I have a problem when starting the device for some phone notifications do not arrive until I open the application. 我有一个使用Ionic开发的应用程序,现在在启动设备时遇到一些问题,直到我打开该应用程序,某些电话通知才会到来。 I debug the application with android studio I found that the device receives the notification but the system does not allow the reception of notifcations because the application is not allowed after the boot to start;
我用android studio调试了应用程序,发现设备收到了通知,但是系统不允许接收通知,因为启动启动后不允许使用该应用程序; you have to go to the settings to allow the application to run to receive notifications in background.My question is how I can allow the application with ionic to have permission to do the autostart after the boot as c is the case of whatsapp.
您必须进入设置,以允许应用程序在后台运行以接收通知。我的问题是,如何允许具有ionic的应用程序在启动后具有执行自动启动的权限,因为whatsapp是c的情况。 If there is also with android it's welcome
如果还有android也欢迎
You can do perform the task using Ionic Autostart Plugin 您可以使用Ionic Autostart插件执行任务
https://ionicframework.com/docs/native/autostart/ https://ionicframework.com/docs/native/autostart/
As per your question, the plugin should solve the issue. 根据您的问题,插件应该可以解决问题。
Manufacturers white list some apps like facebook and whatsapp rest of the app user should enable auto start permission. 制造商在白名单中列出了某些应用程序,例如facebook,其余的应用程序用户的whatsapp应该启用自动启动权限。
There is no way to enable auto start permission.Only way to make it possible is showing auto start dialogue box take user to the auto start permission activity. 没有启用自动启动权限的方法。唯一可行的方法是显示“自动启动”对话框,将用户带到自动启动权限活动。
I have created one plugin you can have a look 我创建了一个插件,你可以看看
https://github.com/saty932/cordova-plugin-autostart-permission https://github.com/saty932/cordova-plugin-autostart-permission
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.