OnePlus3 devices with Nougat version is by default blacklisting Android application because of which if you have any broadcast receiver inside your application it will never get called in case the application is cleared from background. I have not seen such issue on other device manufacturers. I have further explored it, so came to know that onePlus is doing it to restrict the background processing and improve the battery consumption. However I want my application to be auto launched without doing it manually like going to Settings -> Apps -> Gear-Symbol -> Auto Launch ->enable app.
Asked
Active
Viewed 1,077 times
6
-
"Xiomi is doing something like" if (Build.BRAND.equalsIgnoreCase("xiaomi")) { Intent intent = new Intent(); intent.setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity")); startActivity(intent); } – Mohmad Iqbal Lone Jul 27 '17 at 11:04
-
Facing same issue – Ankur Oct 11 '17 at 13:16
-
It can work only with Xiomi devices . for one plus 3 the package name "com.miui.securitycenter" will be different and we are not aware about that. as i have alredy written to one plus 3 manufacturing team , they have not yet responded. – Mohmad Iqbal Lone Oct 13 '17 at 07:14
-
Even this approach for xiomi will just open auto launch settings screen, where user has to switch on auto launch mode for our app, right? What I need is by default switch on auto launch mode as soon as my app is installed which is already happening for some apps like Allo, skype, etc. – Ankur Oct 13 '17 at 08:01
-
I too have the same problem did you manage to get any reply from one plus – Bikash Oct 26 '17 at 09:00
-
@Bikash i have not recieved any response from them till date. – Mohmad Iqbal Lone Oct 26 '17 at 09:05
-
@Bikash did you got any reply from One Plus team till now. – Codelover May 18 '18 at 11:55
-
No did not get any reply from Oneplus3 team – Mohmad Iqbal Lone Jun 27 '18 at 10:22
-
did you receive any reply now? – Ravi Kilnake Aug 16 '18 at 06:23
-
@iqballone any new answer? – FarshidABZ Oct 05 '20 at 14:44
-
Sorry guys i did not receive any response from oneplus on this – Mohmad Iqbal Lone Jan 11 '21 at 14:47