question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

requestPermission does not exist

See original GitHub issue

Hi,

since a few days, the App doesn’t ask for the SMS permissions anymore. (android) I deleted it and did fresh installs on my phone. Before that, it asked on runtime for the permission. Now it doesn’t.

this.sms.hasPermission().then((has_permission) => { console.log(has_permission);

returns a false.

My idea was, to ask explicit for the permission. In the docs, this function "requestPermission " is mentioned. I did a fresh install and that function doesn’t exist. When I check the permission of the app in the settings SMS is disabled.

Many Thanks, Lars

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaqcommented, Jul 19, 2018

I am on vacation until August 1st. I’ll push a new npm version when I come back. Thanks.

On Thu, Jul 19, 2018, 9:25 AM Juri Strumpflohner notifications@github.com wrote:

Just had the very same issue. @dbaq https://github.com/dbaq did you have a chance looking into this? Maybe do a new release on npm? thx 🙏

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cordova-sms/cordova-sms-plugin/issues/170#issuecomment-406181105, or mute the thread https://github.com/notifications/unsubscribe-auth/ABx_ty3_oyhg-uTI6GH2ypNdq5T_vf1Vks5uIDR_gaJpZM4UOg1c .

0reactions
dbaqcommented, Aug 6, 2018

I just published a new version on NPM.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DeviceMotionEvent Request Permission with Typescript
i tried casting request permission like this (DeviceMotionEvent.requestPermission() as any) but it stays the same. Since it's not a module i ...
Read more >
PushNotifications.requestPermissions is not a function #2688
Bug Report. Using @capacitor/ios 2.0.0 and trying to ask for push notification permission, an error appear in XCode console.
Read more >
FileSystemHandle.requestPermission() - Web APIs | MDN
The requestPermission() method of the FileSystemHandle interface requests read or readwrite permissions for the file handle.
Read more >
Push Notifications Capacitor Plugin API
Request permission to receive push notifications. On Android it doesn't prompt for permission because you can always receive push notifications. On iOS, the ......
Read more >
ActivityCompat - Android Developers
null if no content URIs are associated with the event or if permissions could not be granted. requestPermissions. public static void ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found