Skip to content

[iOS][2.0.0] Not awake closed app when received voip call. #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
william-normann opened this issue Feb 13, 2020 · 15 comments
Closed

[iOS][2.0.0] Not awake closed app when received voip call. #48

william-normann opened this issue Feb 13, 2020 · 15 comments

Comments

@william-normann
Copy link

We use voip-push-notification & react-native-callkeep on iOS to awake app from background mode / closed state when received a voip call.

It work fine in background mode. But when app in closed state. Nothing happen, no notifcation, no automation awake app.

We met this issue from version 2.0.0 and react native 0.60.6. V1 and react-native 0.59 work fine.

any ones met the same issue with us? Can we resolve this problem?

@tuanbm
Copy link

tuanbm commented Mar 4, 2020

Have you got any workaround for this?

@zxcpoiu
Copy link
Member

zxcpoiu commented Mar 11, 2020

Please read the new notes in the readme to see if there any missed part.

https://github.com/react-native-webrtc/react-native-voip-push-notification/blob/master/README.md#important-note

@tnghia944
Copy link

tnghia944 commented Apr 22, 2020

same issue @william-normann , @r0b0t3d , @tuanbm Have you solved it yet?

@zxcpoiu
Copy link
Member

zxcpoiu commented Apr 30, 2020

Have you find the cause? I know ios 13.3 seems have issues, butsolved after upgrade to ios 13.4

@MrAlexWeber
Copy link

I'm running into a similar issue. It seems like VoipPushNotification.wakeupByPush is false, and I'm not sure why.

@MrAlexWeber
Copy link

Have you got any workaround for this?

As a workaround you can import { AppState } from 'react-native' and then basically just check that Platform.OS === 'ios' && AppState.currentState === 'background' instead of checking wakeupByPush.

@tuanbm
Copy link

tuanbm commented May 20, 2020

Have you got any workaround for this?

As a workaround you can import { AppState } from 'react-native' and then basically just check that Platform.OS === 'ios' && AppState.currentState === 'background' instead of checking wakeupByPush.

It's the problem with iOS version < 13, I checked with iOS 12.
My work around is to send double voip notification (and of cause handle the duplication on client code, for me, I send APN messages with a flag to mark if a notification is a duplication one), so far it's working for me. Btw, ios 13 is working as expected, no need to apply the workaround.

@MrAlexWeber
Copy link

It's the problem with iOS version < 13, I checked with iOS 12.
Btw, ios 13 is working as expected, no need to apply the workaround.

I was having the issue when testing on iOS 13.4

@vsalle
Copy link

vsalle commented Jun 4, 2020

It's the problem with iOS version < 13, I checked with iOS 12.
Btw, ios 13 is working as expected, no need to apply the workaround.

I was having the issue when testing on iOS 13.4

Hi, I have the same issue in iOS 13.4.1 i can't wake up app.

@willnaoosmith
Copy link

did you guys even managed to use it with the app minimized? I'm struggling with it and dont find anything to make it work :(

@pschill
Copy link

pschill commented Jun 18, 2020

The problem is that the method didReceiveIncomingPushWithPayload in AppDelegate.m doesn't get called when the app is killed. This results in the system trying to invoke Callkit a few times but fails and it then drops all attempts to start your application on a background push (the console log will just show "Dropped on the floor").

To enable the retries to call this method you need to reinstall your application.

I'm really new at iOS-development so I have no idea why this method doesn't get called or how you call it from a push.

@kentanaka000
Copy link

It's the problem with iOS version < 13, I checked with iOS 12.
My work around is to send double voip notification (and of cause handle the duplication on client code, for me, I send APN messages with a flag to mark if a notification is a duplication one), so far it's working for me. Btw, ios 13 is working as expected, no need to apply the workaround.

How exactly did you get this workaround to work? I've been trying this and it gives me weird bugs when the call is closed before the duplicate comes in

@tuanbm
Copy link

tuanbm commented Jun 24, 2020

It's the problem with iOS version < 13, I checked with iOS 12.
My work around is to send double voip notification (and of cause handle the duplication on client code, for me, I send APN messages with a flag to mark if a notification is a duplication one), so far it's working for me. Btw, ios 13 is working as expected, no need to apply the workaround.

How exactly did you get this workaround to work? I've been trying this and it gives me weird bugs when the call is closed before the duplicate comes in

It's a little bit tricky that the duplicated push should be sent just after the 1st one came, like: send the 1st one, delay 1s, then send the 2nd one. 2 notification should contain the same uuid and in the code, you should call the api to show the incoming call UI with the same UUID ( that means 2nd one will be ignored if the UI is still showing because of the 1st one)
Hope this helps.

@zxcpoiu
Copy link
Member

zxcpoiu commented Nov 19, 2020

please check discussion in #59 and the test the fix in PR #69

@zxcpoiu
Copy link
Member

zxcpoiu commented Dec 2, 2020

Released 3.0.0, this should be fixed. Please check doc and test, especially didLoadWithEvents part.

@zxcpoiu zxcpoiu closed this as completed Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants