When we download Whatsapp, it automatically guarantees the permissions itself without showing us the permission dialog. How can I do this in Xamarin? my platform is Android.
Perhaps if your device is rooted this could be possible. Otherwise, the answer is no.
Ever since API 23 (Android 6 Marshmallow), App permissions have been a thing. If your App targets API 23 or higher, this is something you have to support and ask for whenever you do something that is marked "dangerous". These are permissions for stuff that could involve personal information about the user of the device. You can read more about permission levels in the official Android docs.
Related
In our android app we ask for ignore battery optimization permission, and the user has an option to allow or deny the permission
On some Xiaomi android 11 devices , even when the user clicks allow permission , it brings back an error that the permission couldn't be set.
But when the user manually searches for Battery Optimization setting and selects dont optimise , and retries granting it through our app , the permission for ignoring battery optimization is granted
We are not able to grant ignore battery optimization permission on Xiaomi devices programmatically when we follow the android standard by using ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS to white list our app
On other devices users are able to grant the permission through our app
I am not sure if there is any bug from MIUI on android 11 devices that doesn't allow apps to stop battery optimization
Can anyone suggest a workaround on how do we programmatically disable battery optimization on xiaomi devices running on android 11 ?
Your user need to allow manually your app to be executed in background and open automatically when needed from setting->app->
Allow automatic startup to on
Change energy save MIUI to No restrictions
Unfortunately there's no way to go around this problem...
How to ask for system alert window permission on Android Wear? I am able to achieve the SYSTEM ALERT WINDOW for mobile but on the wearable device same code is not working for me. If any example of SYSTEM ALERT WINDOW for wearable would help me a lot.
This is a duplicate of Requesting permissions on Android wear, but SO won't let me mark it as such because the OP didn't accept my answer there.
The summary is that it's not possible to request this permission on Android Wear 1.x, but it is on Wear 2 (currently in beta and slated for release in early 2017).
In addition to #String's answer, you might want to use requestPermissions() method. Please note, these permissions must be requested in your manifest.
And, as mentioned in Permissions for Services,
only an activity can call the requestPermissions() method, so if the user interacts with your app via a service, for example a watch face, the service must open a background activity before requesting the permission.
You can gain additional insights from the solutions given in this SO post and from the sample code shown in this GitHub post.
I am building an app that uses the location service api.
However I am not sure if I have to implement the default Windows Phone Privacy policy message when you install an app? I have already done the permission functionality when a user starts using my app but I am not sure what to do with the installation message? Is it set by default when you set the category of your app via the submission wizard or not?
Microsoft will detect what services your app uses and prompt the user that your app includes these and ask them to confirm that they want to allow the installation to continue. So there's nothing you need to do in that respect.
I'm not sure in what extent you implemented your permission functionality within your app, but just to be sure: you need a Privacy Statement prompt on first launch, an option to turn off location services and a link to access the statement again. I didn't read the guidelines properly, thus dooming the certification of my app.
I'm trying to upload an application to the Windows Phone Marketplace but it keeps failing due to the location privacy policy. In the application there is only one part that checks your location, and the user has to manually call it. Basically we show a map, and a button to locate the user, when this button is pressed for the first time, we show a small privacy policy, and we ask the user to allow the use of his location. And even with this, the application's certification failed.
I'm wondering if anyone has a good example of how the privacy policy should be, and if it should be displayed when the app is first launched, rather than when the locations services are activated by the user (like we are currently doing it). And any other tips or advice you may have.
This is the only part of the certification the app failed, so once I get some good answers, it'll be ready to go.
Thanks!
Make sure to read the Windows Phone 7 Application Certification Requirements.
Section 2.10 specifically applies to your problem.
Microsoft really wants you to have a permanent link to your privacy policy somewhere in the app. Your privacy policy should explicitly explain that you collect this data, how you use it, how you store it, who you share it with, and what the user can do about it. You also need a setting somewhere for the user to turn use of GeoLocation data off.
In my app I have an About screen with a link to the PrivPol, TOS and Tech Support. I also have a settings page with an ON / OFF switch for GeoLocation data. I made sure our privacy policy explicitly addresses location data. And we got through approval with no issues.
YMMV.
Do you have the specific certification requirement (the reference number) ? Here are a couple of links about it in the Windows Phone 7 developers forum:
http://forums.create.msdn.com/forums/p/72366/441401.aspx#441401
http://forums.create.msdn.com/forums/p/63656/390088.aspx#390088
Is there a way to simulate whether permission are granted or denied to use services like location on the Windows Phone 7? I want to get the users current location, but I can't seem to find away to make the phone show me the permissions dialog so that I can deny access to it for testing? Anyone else have these kinds of issues? I'm finding it rather hard to really test this stuff without having the actual hardware.
I can't seem to find any built-in support to check if the user will allow the location & push notification services to be used within an application.
I would expect a location-aware Windows Phone 7 app to present a dialog box to the user informing that location services will be used within the app. The dialog box has a "Allow" and a "Deny" option. Based on the selection of the user, the app may or may not use the location of the user. I have used Shawn Wildermuth's Child Window to evaluate the user's choice and use their decision in their application accordingly.
HTH,
indyfromoz
You don't need to check for permissions. When app is certified, AppHub scans application for code requiring permissions and updates WMAppManifest.xml.
When user installs your app, he agrees on all permissions you need. So if it's launched, then you got all you need.