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.

Android 13: PermissionsAndroid not showing android.permission.POST_NOTIFICATIONS

See original GitHub issue

Description

In the latest version of PermissionsAndroid it is stated that latest android permission for android push notifications is available but latest react native version 0.70.1 still not contain this permission. This permission is important to be released because android 13 requires this permission for push notifications now and it is available in code base but not released yet.

Version

0.70.1

Output of npx react-native info

System: OS: macOS 12.6 CPU: (8) x64 Apple M1 Memory: 24.18 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node Yarn: 1.22.18 - /opt/homebrew/bin/yarn npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0 Android SDK: Not Found IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8512546 Xcode: 14.0/14A309 - /usr/bin/xcodebuild Languages: Java: javac 15 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.1 => 0.70.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

  • Create a new project
  • see the latest version of react native in packages.json it should be 0.70.1
  • Follow steps here to trigger android permission

Snack, code example, screenshot, or link to a repository

Guide for triggering android permissions https://reactnative.dev/docs/permissionsandroid

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cortinicocommented, Sep 20, 2022

Are you using the TypeScript template? If so, can you share your NotifPermissionPOC project so we can take a look at it?

I have created a new project with version 0.70.1 to test it but type was still missing which is being shown here

This file has been merged yesterday on main so you won’t be using it till we release a new version of React Native (0.71.x).

0reactions
alihussnain-gitcommented, Sep 20, 2022

I have created a new project with version 0.70.1 to test it but type was still missing which is being shown here

Can you run the command I suggested and post the output? Thanks

Screenshot 2022-09-20 at 20 35 50
Read more comments on GitHub >

github_iconTop Results From Across the Web

Notification runtime permission - Android Developers
Android 13 (API level 33) and higher supports a runtime permission for sending non-exempt (including Foreground Services (FGS)) notifications from an app: ...
Read more >
Android 13 not asking for POST_NOTIFICATIONS permission
The Notification permission pop-up won't be shown automatically. You have to request this permission manually using the standard way to ...
Read more >
PermissionsAndroid - React Native
PermissionsAndroid provides access to Android M's new permissions model. ... advise your app to show a rationale for needing the permission.
Read more >
THIS Is How You Use Notifications on Android API 33+ ...
To be able to show notifications on API level 33+, users now need to accept a permission before. In this video I'll show...
Read more >
Android Runtime Permissions Example - DigitalOcean
Hence we need to implement this new android permissions model in our application. Dangerous and Normal android permissions. Android defines some ...
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