I am creating demo project with flutter google maps. All things working fine but issue with GPS service. If GPS service not enable not able to get locations.
Tried
https://pub.dartlang.org/packages/geolocator
https://pub.dartlang.org/packages/geo_location_finder#-readme-tab- : Open setting menu.
Is there any way to prompt popup like googleMap app to turn on GPS service ?
You neet to write the native code and call it using methodchannel .
Refer to this link , https://proandroiddev.com/communication-between-flutter-and-native-modules-9b52c6a72dd2
For getting the idea how to call native methods using flutter methodchannels.
In native u need to write 4 line of intent code only .
You could use something like https://pub.dartlang.org/packages/simple_permissions to enable the various location permissions in a cross-platform way.
A new flutter plugin for checking and requesting permissions on iOs and Android.
Related
I have implement a simple code to my flutter web app:
https://developer.apple.com/documentation/webkit/promoting_apps_with_smart_app_banners
Now it shows a banner on top if app is installed or not.
If app is install it shows "Open" otherwise it shows "View" which takes to download.
Now the issue is as per the documents it says you can pass specific arguments if needed like this:
I want to know how do i check in flutter app if the app is opened from smart banner from safari and which app-argument was passed down on opening the app.
I am stuck on this issue for 3 days now.
Use native application(_:open:options:) method to get access to app-argument and Write custom platform-specific code to access it from Flutter or maybe use app_links plugin.
I'm trying to implement a feature over on Android, basically, on the web, you can use googlegmail:///co?to=email to open a compose view on the native Gmail app.
googlegmail:/// doesn't seem to work on Android and I'm really unsure if this type of functionality is possible on Android. Even if it exists for some other app, it would be great to get a working example on Android! Any clarity would be appreciated.
On Android you need to use an Intent, which is what allows you to start other apps.
Check out Compose an email with optional attachments for an explanation of how to do what you want.
i want to open contact details page or information that we can open it from
contact book but i need it to open programatically, i am new to IOS.
I am developing an app in flutter environment, i didn't found anything in flutter for this so i have done this in android via platform specific code, now i need this working for IOS too.
Did anyone know how can i achieve it in Flutter or IOS via platform specific method, Or suggest specific IOS code for this?
Thanks in advance!!
I have been working on a project wherein i made a framework where i automatically test the SDK my company is developing.
I have created my dummy sample application for all the platforms(iOS, Android, OSX, Windows) which makes use of this SDK and i thereby test this SDK, call the SDK API's do my work.
Now my question is for iOS i get permission alerts for Contacts, Camera and Microphone first time whenever i use the API's of my SDK which internally is invoking something in iOS framework. Is there a way i can automatically give this permission to my application ?? i know it's iOS own Security concern and it's correct. But how do i bypass it.
I see there is Apple's XCUITest framework but i don't want to open my application via it.
Right now i handle this alert manually but i need to implement Continuous Integration(using ios-deploy), i have done everything but i can't handle these alerts automatically.
Can someone please help me.. Thanks!!
Cordova allows access to device UUID using:
var deviceID = device.uuid;
I am interested in accessing the advertisingIdentifier on the iOS platform.
Is the Cordova method above sufficient for this?
If not am I able to insert other code into the framework to accomplish this task (what might that look like)?
Thank you!
Cordova doesn't ship with that specific functionality.
You will need a cordova plugin like this: https://github.com/aquto/cordova-plugin-AppleAdvertising (Apple)
I couldn't, however, make the above plugin work for myself.