Show Popup when Phone Rings in React native with expo - android

I'm doing an android application with the expo framework. I want to make a popup when a voice call comes in and after call gets disconnected.
We can achieve this module using broadcast receiver(android.intent.action.PHONE_STATE). But I couldn't find any packages for react native with expo.
Can anyone help me to achieve this functionality?

Related

Why React native app is Too slow in comparison with expo

I was Trying to build an app using react-native app.
but the app was running very slow like if i click or tap on any button it takes a around 1-2 seconds to perform basic function
and if i built the same thing using expo it works fine.
Can some please help me out why react native app is behaving like this.
My react Native-App video
My react Native-App video:https://photos.app.goo.gl/Y8jQRS8wrUcoTyH39
My expo app video
My Expo react Native App Video: https://photos.app.goo.gl/7Ezq3tErTS4aLL1GA
I tried all possible methods to make react native faster like using memo and callable methods.
if you are using native-base there an issue her : visit https://github.com/GeekyAnts/NativeBase/issues/4302

React Native: Make sure an external app is running in the background

I want to make sure an external app on the phone (say Spotify) is open in the background without me having to manually open it and make it appear in the foreground (using intents or links).
I'm making an app that uses the Spotify API with React Native.
I read in another thread that you can not implement a Web Playback for React Native so I'm stuck with using the API.
My problem is that in order to use the phone as a playback device you need the Spotify app running in the background. Now I have a solution, use Linking and make the app open in the foreground. But that way I make the users leave my app, and somehow I have to tell them to come back which sounds like a terrible design. I also tried nesting the links into each other (first being Spotify the second being my app), it worked a few times but it is pretty unreliable.
So my question would be if there's any way to call an external app and open it WITHOUT having it take foreground over my app.
I'm pretty new with React Native so I'm still learning, but I would appreciate your guidance on this issue

NativeScript lockdown (or kiosk) application

I wondering if it is possible to create a "lockdown" application with NativeScript.
My aim is to place an android tablet in a public area where people may only interact with my NativeScript application:
fullscreen
no home-button access
no sleep/standby
no notification bar
Then, if possible, a pin code may allow to unlock the application.
Example:
You are looking for kiosk app, it's of course possible with NativeScript.
You will have to access android's native apis to do so, here are some heads up.
Also there is a thread in the forums which will give you some initial thoughts on doing this with NativeScript.

Start an app automatically on device start with react native

I am learning react native and to do so, I am building my first app.
However as great as it is, It seems like react native has some limitations.
What I want my app to do is to start running the background as soon as the devise boots up (like the WhatsApp or the alarm app).
And I also want notification like WhatsApp new message notification (overlaying the screen).
I did it with android studio and wanted to do it with react native. So far I did not find any package / library that can do that, is this the limit of react native or is there a package that can do that? Because right now I am thinking of going back to native with android studio.
In android you must ask for necessary permissions in manifest. Also in the phone, you must set battery optimization. In Ios this is the hard one. I cannot do it. Your app must be music app or maps app. Thats all i know.

Is it possible with sencha touch native app to still run in the background?

I'm new to sencha touch and I am trying to create a native app using phonegap in iOS and Android.
We need to get data from a device to the phone through bluetooth, and have it still receive data even if the app is closed.
Is this possible with sencha touch?
By default this is not possible with Phonegap/Cordova, when you suspend an app JavaScript execution stops too. There are however plugins that accomplish this. A simple google search gives results like
https://github.com/jocull/phonegap-backgroundjs
Good luck

Categories

Resources