react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

react native fullScreen notification incoming call need to support both ios and Android

Open chganesh opened this issue 3 years ago • 3 comments

Bug report

Any suggestion for Incoming call notification full screen while lock screen state and notification popup awake the device. please help on this need to work both platforms. latest version of react native unable to support this feature. Please help on this. thanks in advance. download-1 download

  • Reproduced on:
  • [ ] Android
  • [ ] iOS

Description

Steps to Reproduce

Versions

- Callkeep:
- React Native:
- iOS:
- Android:
- Phone model: 

Logs

Paste here

chganesh avatar Dec 12 '22 05:12 chganesh

@sboily Please help on this.

chganesh avatar Dec 12 '22 07:12 chganesh

Also tried this, but since Android 10 and above, you shall follow guidelines regarding launching activities from background:

https://developer.android.com/guide/components/activities/background-starts

The simplest workaround is to request OVERLAY_PERMISSION (allow display over other apps):

Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION);
intent.setFlags(FLAG_ACTIVITY_SINGLE_TOP | FLAG_ACTIVITY_NEW_TASK);
startActivity(intent); 

You can verify if this permission is granted with Settings.canDrawOverlays(context) then you can start activities from background (none of your app's activity is visible to user)

Hope it helped! :)

Marchuck avatar Jan 02 '23 19:01 Marchuck

is there any other way than OVERLAY_PERMISSION? Because I have seen one app achieved it(https://play.google.com/store/apps/details?id=com.breakingnewsbrief.app)

Mehroj01 avatar Jun 03 '23 05:06 Mehroj01