Onesignal promptPermission() is not applicable in Android - flutter

i'm using onesignal_flutter to push notifications to my app, but im facing this error, i did everything in the docs, still facing the same problem, any solution ?

In my case on Android I remove this line await OneSignal.shared.promptUserForPushNotificationPermission();

Related

flutter package:flutter_app_badger is not working in android and status is platform supported

I want to use flutter app badge for incoming notification, I used package "package:flutter_app_badger" but its not working. Its not giving me error message also and it run succefully but its not working.
I am using android vivo mobile for testing.
When i check this package is supported to my device or not ? with following code and its says yes, this device is supported app badger.
for platform checking:
FlutterAppBadger.isAppBadgeSupported();
for add badge on app icon i below code simply:
FlutterAppBadger.updateBadgeCount(1);
can anyone please solve this query its really helpful to me.

How to add Face authentication in flutter for android devices?

I want to add the face authentication for andorid but could not find one. No packages are there and not event the solution. Any ideas?
Please try it:
How to do face id authentication for both android and iOS in flutter
Youtube:- https://youtu.be/M6Puy4EBrz4

Flutter : agora rtc engine make the app crash in the another device

I want to add agora_rtc_engine plugin into my app , but I'm facing a problem with it . When i debugging the app on real device it is working and when i installing it on another device it doesn't work and show me that on the device screen
agora video call flutter keep stopping
I'm using the agora quick start example https://github.com/AgoraIO-Community/Agora-Flutter-Quickstart
can any one know the wrong with it ?
It happens to me when I rewrite code or copy lib. But when I download examples like this one https://github.com/AgoraIO-Community/Agora-Flutter-Quickstart everything works.
Temporary you can build your project on this one, just changing name and reinstalling it on your phone.

Ionic4 Native Geolocation doesn't ask for permission Android

I'm desperate.
I've build an application on Ionic4 and iOS and Android and some Ionic native libraries.
I'm using the Geolocation Native API and it's working perfectly on iOS.
My problem is with Android. If I ran ionic cordova run android --livereload the location works perfectly but if I build --prod, nothing happens. It doesn't prompt for the permission to use your location, nothing... It doesn't even show the loading spinner. Has someone experienced something similar? I've also tested using the GoogleMaps API, no success.
Thanks
Could you please give some more details regarding your issue?
Also as a quick workaround could you please by wrapping your geolocation code inside this.platform.ready() listner, for better debugging of your issue.

The BarcodeScanner plugin in ngCordova doesnt work in Android 6

I'm developing in Ionic Framework.The barcodeScanner plugin(ngCordova) doesn't work for the newest version of Android.
I suspect the plugin is not updated for this version.
Any of you have found a solution? Thanks.
Samuel Paredes, There is many change in Android 6(M) , the main is runtime permissions, so we need the camera for the barcode scanner , but the plugin is not yet updated for that so we need to On the Camera permisson for the application manuully.
Setting >> APP manager >> Your App >> Permissions >>Camera >>
Please enable the camera permission from there.
Hope it will help you
We have this problem too. To solve it we have done this : ionic platform add android#4.1 and it solve the problem
I have this problem: Sorry, the android camera encountered a problem. You may need to restar the device
http://i.stack.imgur.com/0nHW3.png
Droid Tech, will this be resolved in the near future? Is there some way to monitor or to get a notification when this bug is solved?
Same error happened to me. A guy on Github forked the plug-in and fixed it, take a look here.
basically, remove the barcode scanner plugin you have right now and add the new one like this:
cordova plugin add https://github.com/jrontend/phonegap-plugin-barcodescanner
It works exactly the same way.