Skip to content

Commit

Permalink
test code to prompt without using onesignal
Browse files Browse the repository at this point in the history
  • Loading branch information
emawby committed Jun 6, 2024
1 parent 1b252b5 commit a175fec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ protected void onCreate(Bundle savedInstanceState) {
// OneSignal.addEmailSubscriptionObserver(viewModel);
viewModel.onActivityCreated(this)
.setupInterfaceElements();

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
this.requestPermissions(new String[]{android.Manifest.permission.POST_NOTIFICATIONS}, 1);
}
}

@Override
Expand Down

0 comments on commit a175fec

Please sign in to comment.