Code Monkey home page Code Monkey logo

Comments (4)

fabriziomoscon avatar fabriziomoscon commented on August 19, 2024

@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.

jrperson avatar jrperson commented on August 19, 2024

@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.

fabriziomoscon avatar fabriziomoscon commented on August 19, 2024

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.

fabriziomoscon avatar fabriziomoscon commented on August 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.