简体   繁体   English

如何允许自动启动权限,例如用于离子应用程序的whatapp应用程序

[英]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.

相关问题 如何自动启动类似whatsapp的Android应用程序? - How to Autostart an Android Application like whatsapp? 如何从联系人列表中获取我的应用的所有用户,例如WhatApp在Firebase聊天应用中执行的操作 - How to fetch all users of my app from contact list like WhatApp does in Firebase chat app 如何在没有用户许可的情况下自动自动启动android应用? - How to autostart android app automatically without user permission? 如何检查应用程序是MI安全权限自动启动中的白名单 - How to check application is white list in MI security permission autostart 如何像Facebook和WhatApp那样优化图像? - how to optimize image like Facebook and WhatApp does? 如何从画廊或相机像Android中的whatapp裁剪图像 - how to crop image from gallery or camera like whatapp in android 如何创建一个Android自动启动应用程序? - How to create an android autostart application? 如何以编程方式检查 MIUI 自动启动权限? - How to check MIUI autostart permission programmatically? 如何自动启动系统应用程序? - How to autostart a system app automatically? 如何在Ionic App中的inAppbrowser中授予权限 - How to give permission within inAppbrowser in ionic App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM