Comments (4)
@jrperson in my app the incoming call notification opens the react native app. What is your AndroidManifest.xml
?
The relevant code is this block:
https://github.com/hoxfon/react-native-twilio-programmable-voice/blob/master/android/src/main/java/com/hoxfon/react/TwilioVoice/NotificationHelper.java#L78-L107
Basically create an App launch intent to use when the notification is dealt with.
I think this is relevant:
<activity
android:name=".MainActivity"
android:label="@string/APP_NAME"
android:launchMode="singleTop" //<--------
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize"
android:screenOrientation="portrait">
from react-native-twilio-programmable-voice.
@fabriziomoscon Yes, that is the exact experience I am having
"incoming call notification opens the react native app."
That is not what I want to have happen. I only want the incoming call notification to trigger an opening of the react native app when the screen is off. All other times (screen on/ app in background, screen on/app in foreground) I just want the notification to show onscreen (but the react native app does not open). This is more in line with the default "phone" app behavior for Android.
Because what I am looking for is conditional behavior
if(screen off) {
open app;
}
else {
don't open app;
just show notification on screen;
}
I assumed it wouldn't be a simple AndroidManifest.xml value.
from react-native-twilio-programmable-voice.
Yes, sorry for the confusion. What you described it is what happens.
It might be good to have a session on hangout or seeing a GIF on what happens.
It might also be worth reading this thread:
#12
Let's organise a time so I can help you.
from react-native-twilio-programmable-voice.
@jrperson is this still an issue? Check out the latest branch which uses the latest Twilio SDK for iOS and Android.
from react-native-twilio-programmable-voice.
Related Issues (20)
- Push notifications for missed calls and voicemail HOT 1
- How to handle conference calls HOT 1
- Failed to run the deviceDidReceiveIncoming method HOT 3
- Storing Device Token in Local Storage Causes Issues on Multiple Devices HOT 1
- App is not run on android simulator HOT 1
- Call Extension for contact
- Distinguish between ringing and answered? HOT 1
- Android 12 support HOT 5
- Voip call is not received in iOS HOT 1
- Phone Number showing in status bar while call is in progress HOT 1
- React Native android build failed while running app after install - npm install react-native-twilio-programmable-voice --save HOT 2
- incoming call failed in android
- CallKit error com.apple.CallKit.error.requesttransaction error 7
- Any listener like 'TwilioVoice.addEventListener('deviceReady') not working in IOS HOT 6
- How can I implement the call rejection function when the line is busy?
- How can I get call_state when I accepted a call? HOT 3
- Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. HOT 1
- android 12 error HOT 1
- Twilio Official Voice React Native SDK HOT 1
- Invalid Parametrs error on connect outgoing call HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-twilio-programmable-voice.