Android 13: PermissionsAndroid not showing android.permission.POST_NOTIFICATIONS

This issue has been created 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-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
support bundeled/split apks 1 2022-09-15 2022-09-30
reboot_payload.bin is getting replaced with hekate after updating hekate 2 2021-10-21 2022-09-22
In extended screens, message packets are not pulled up 1 2022-08-29 2022-09-23
Dev environment setup with dotfiles 0 2022-08-14 2022-09-09
}bedrock.cube.data.import.pro with cubes bigger than 12 dimensions 1 2021-08-11 2022-04-16
pIncludeRules: 2 in }bedrock.cube.dimension.add 0 2021-08-11 2022-04-16
FeedsApi->CreateFeed error 3 2021-09-22 2022-05-15
event loop is running 1 2021-05-08 2022-08-13
Change style from rough to something cleaner 4 2021-07-20 2022-10-05
如何使添加内容时,滚动条不自动滚到最下方 2 2022-03-03 2022-09-04
Add optional weights to TSLM 1 2019-08-31 2022-08-16
@enum doesn't generate members in docs 2 2018-03-01 2022-09-19
Adding onCellTap callback breaks whole calendar 0 2022-04-25 2022-09-13
Make the Markdown badge template a link 1 2022-02-06 2022-07-30
Keep getting stratum_recv_line failed on startup 2 2021-03-01 2022-10-02
Organize images and text in README 1 2021-10-11 2022-08-21
Question about Performance with > 1000 items inside panzoom element 1 2021-11-20 2022-09-02
Continuity - Course Notes 0 2020-10-21 2022-07-19
toggle doesn't work on lists nested more than 4 levels deep 6 2021-03-23 2022-10-01
[Helm] Rook Operator upgrade (1.7.0 -> 1.7.4) throws error message but updates anyway 5 2021-10-07 2022-08-22
it kicks me out of the game 1 2021-05-22 2022-09-02
Flaky io.trino.plugin.raptor.legacy.TestRaptorConnectorTest 4 2022-05-13 2022-09-19
Getting Started example window does not appear (Mac) 2 2021-07-26 2022-09-18
The docs target should not be generated if Doxygen is not available 4 2018-04-14 2022-07-19
Ignored delivery_mode 0, value should be 1 or 2 1 2021-12-22 2022-09-29
/usr/lib/postgresql/*/bin not in PATH 3 2020-10-21 2022-09-14
consider add funlen as new rule 4 2020-11-20 2022-09-28
s 2.0.96 local invoke 的容器退出后却不会终止当前进程 1 2021-12-10 2022-10-03
vim.lsp.codelens.refresh does not work if any call to on_codelens has err. 1 2022-04-06 2022-10-05
`scan ci` uses wrong value for "mode" HTTP header 0 2022-08-16 2022-09-10
Main Thread: Make Cha-Ching Not War 1 2022-05-30 2022-10-03
FIFO paths on Android 0 2022-02-21 2022-09-29
Write tests to confirm expected behaviour of delegated balance increasing without action 0 2021-10-13 2022-07-25
[Bug]: useRoutes hook give warn Can't perform a React state update on an unmounted component after hot reloaded 1 2021-12-12 2022-08-07
`bit install` doesn't run the prepare and postinstall scripts from `package.json` 3 2021-12-02 2022-10-02
UDP/8000端口问题,本地推拉流正常 , 部署到服务器后 rtmp 正常 , webrtc 拉流失败 2 2022-01-04 2022-02-24
Texture glitch in the overhead panel 2 2021-12-15 2022-09-15
Unresolved import with packages under "src" when installed as editable 21 2019-04-25 2022-10-06
Update bindgen requirement from 0.54 to 0.55 2 2020-08-25 2022-09-04
Sub-accordions don't work 1 2020-04-16 2022-09-09
go/types, types2: error messages don't distinguish between different types with the same names 0 2021-09-09 2022-07-27
Windows Cuda 11.5 cudnn 8.3.2.44 fails tests with RuntimeError: cuDNN error: CUDNN_STATUS_NOT_SUPPORTED. This error may appear if you passed in a non-contiguous input. 4 2022-02-01 2022-09-23
Incorrect suggested removal of to_string on slice 1 2022-07-28 2022-09-23
BG/NBD Model Not Converging 3 2020-10-29 2022-08-05
ssh连接其他设备异常Segmentation fault 2 2022-01-23 2022-09-18
Couchpotato show Movie Folder as empty 7 2019-07-29 2022-09-06
kubelet reports pods status as not ready when a container terminates with exit code 0 8 2015-05-15 2022-08-26
Provide a way to request a WebSession without creating one 0 2022-06-06 2022-09-16