I want to know all the permission list that a PWA can acquire in Android Mobile & iOS Mobile.
Following permission I know:
1. Camera
2. Push Notification
Permission Registry:
'accelerometer',
'accessibility-events',
'ambient-light-sensor',
'background-sync',
'camera',
'clipboard-read',
'clipboard-write',
'geolocation',
'gyroscope',
'magnetometer',
'microphone',
'midi',
'notifications',
'payment-handler',
'persistent-storage'
'push'
And you can query them with the permission.query() method to get the state of a user permission:
navigator.permissions.query(PermissionDescriptor)
.then(
function(permissionStatus) { ... }
)
Related
Is it possible to check if app has permissions and if don't ask for permissions programmatically on Hololens 2?
In manifest permissions are already declared by sometimes if you miss the permission popup or click on NO by mistake the app doesn't ask for permission never again.
Unity 2020.3.13f1
MRTK 2.7.3
- Update -
I asked for this feature here:
https://github.com/microsoft/MixedRealityToolkit-Unity/issues/10675
Please support the request!
To check Microphone and Camera permissions on HoloLens 2, we can take advantage of WinRT API MediaCapture. If the app does not have Microphone and Camera permissions, when calling the InitializeAsync method, it will throw a UnauthorizedAccessException.
If we got this exception, there is no way to re-ask for permission programmatically. We should let the user to grant us the required permissions again in Settings with using the ms-settings:appsfeatures-app URI, which can open the advanced settings page for our app.
#if ENABLE_WINMD_SUPPORT
using (MediaCapture mediaCapture = new MediaCapture())
try
{
await mediaCapture.InitializeAsync();
}
catch (UnauthorizedAccessException)
{
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings:appsfeatures-app"));
}
#endif
Another way to check the permissions would be using AppCapability Class. CheckAccess method will return the access status. If the status is DeniedByUser, we will still need to open the advanced settings page for our app using the ms-settings:appsfeatures-app URI and let the user to grant us the required permissions.
I want to pull the list of pages from an account by using my App. I took reference from https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.2
I have added few scopes "manage_pages, publish_stream, read_stream, publish_actions, publish_pages" to fb:login-button so that I can pull pages. I have added one more function
function getFacebookPages() {
FB.api('/me/accounts', function( apiResponse ) {
if( apiResponse && !apiResponse.error ) {
console.log('For Facebook pages');
console.log(apiResponse);
}
});
}
to pull pages, but it not pulling pages.
Please help me.
For permissions that aren't the default ones ( email, public_profile, user_friends ) you need in 'Status & Review'(from the menu in your app dashboard) to make a submission for them.
Until your review is completed you could create in your app a TEST app at 'Test Apps' ( again, from the menu in your app dashboard ). If you code using the ids of an test app you don't need the submission for permissions, just specify them in the scope.
This must work, please give more details if doesn't works
We are facing some issues while publishing Canvas App Install Ads using facebook ads api.
We are getting this error while submitting the Ad. Ad Creative has been successfully created.
Ad Specs:
{
"adset_id":"XXXXXXXXXXX",
"name":"e2e canvas app create # app # 1407",
"bid_type":"ABSOLUTE_OCPM",
"creative":{
"object_id":"XXXXXXXXXXXX",
"actor_name":"e2e canvas app create # a",
"body":"e2e canvas app create # app # 1407",
"name":"e2e canvas app create # app # 1407",
"link_url":"LINK_URL",
"image_hash":"996e9f651b6bc8f86ee7ac83c72f0718"
},
"targeting":{
"genders":["1"],
"age_max":64,
"age_min":13,
"geo_locations":{"countries":["IN","CN","GB","ZA","RU"]}
},
"bid_info":"{
'ACTIONS':0,
'REACH':1500,
'CLICKS':0,
'SOCIAL':0
}",
"objective":"CANVAS_APP_INSTALLS"
}
Error:
Please include a value for 'user_os' or 'user_device' in ad targeting spec.|Exception|1487504
my problem is this, when the user is asked to select friends from the list and click on Send I receive a Success state from callback but no request is reached from the people selected in the list.
My setup is this:
- my app is a native app for iOS and Android made in Unity
- my app is registered in Facebook developer portal as Game/Puzzle, I set up bundle id, package name, display name and namespace
- my app is not yet published
- I configured the Prime31 Facebook plugin with the appId given from Facebook and Display Name
I send my request like this:
public void AskLifesOnFacebook()
{
var parameters = new Dictionary<string, string>
{
//{ "app_id", "#######my_app_id_number####" },
{ "method", "apprequests" },
{ "title", "My request title" },
{ "message", "My request text" }
};
FacebookCombo.showDialog("apprequests", parameters);
}
But still the friends selector is shown up correctly on an overlay windows, I select friends and send the request but no request is received.
Am I missing something in the configuration of my app on Facebook? Do I need to pass some kind of certification?
From the same app the stream.publish is working correctly and I can publish on user walls.
The setup with Prime31 plugin and the call are correct!
You have to enable "Single Sign On" and "Deep Linking" in Facebook app parameters and add a valid itunes ID for your app (while testing you can put any valid ID, but you should create a itunes connect entry for your app and get the final ID).
When your app is a native iOS app, the users see the notifications only through the Facebook iOS app, so they are guarantee they can open iTunes or run the game.
Global notifications instead (ej: regular browser on PC) are seen if the app is in a Facebook Canvas.
I created App which add infomation about read articles in my site to timetable.
How can I disable my app from users account with using facebook sdk?
E.g. User click a button on my site and App disabled from users account.
You can do something like:
FB.api("me/permissions", "delete", function(response) {
console.log("Application should now be invalidated, response: ", response);
});