Android 13: PermissionsAndroid not showing android.permission.POST_NOTIFICATIONS

This issue has been tracked since 2022-09-20.

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

cortinico wrote this answer on 2022-09-20

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.

Are you using the TypeScript template?
If so, can you yarn list @types/react-native and make sure you're using the latest types for React Native? I believe your issue might be related to using the 0.69 types on a 0.70 project.

alihussnain-git wrote this answer on 2022-09-20

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

cortinico wrote this answer on 2022-09-20

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

alihussnain-git wrote this answer on 2022-09-20

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

cortinico wrote this answer on 2022-09-20

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).

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-03
Star Count 105144
Watcher Count 3666
Fork Count 22469
Issue Count 2232

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date