The problem here often appeared, but I didn't found anything about it for delphi and firemonkey.
I would like to display some information when my application detects an incoming call (Android).
I know it would be best to create my own phone application and set it as the default one.
But Android has Toas and Notification and I thought to use it.
1) I tried to use a toast but did not manage to display information ON THE incoming call screen
2) Notification displays the message but I must first swipe down notification bar. It gives me nothing. I would like information to appear for example like
information about the end of the battery (information available above all screen application)
Is anyone able to tell me something?
Related
I have an app that needs to show a full screen notification even when the phone is locked or the app is closed, something like ubber, when the user orders a driver i want the driver to be able to see a fullscreen notification that shows the details of the order and some action buttons that might reject the order, accept it, or open some activity in the app like checking the users profile or something.
I don't want it to be just a normal notification because the whole buisness kinda depends on it, the driver needs to be instantly informed about the order and react to it, that can be best achived with implementing a full screen notification just like answering a call, it's a time-sensitive message.
Is this possible with react native and some push notification service like OneSignal?
After doing some research i found that this may be achievable with Android using services and full screen notification intent, but in ios it's more complicated since background tasks are very restricted in iOS.
So im just looking for some insight on how to achieve this or at least something similar, is it even possible to achieve something like this? Do i have to write some platform specific code for both iOS and Android?
ANY help at all is very much appreciated, thank you.
I wonder if it is possible to build an application for Android that waits for incoming calls and only allows the ones that are in an internal white list to show and make sound.
I know this is what a normal call blocker would do and I know that it is possible..however what I really want is:
If a call arrives that is not in the white list, I don't want to reject it, I don't want the caller to know the call was rejected. I just want my app to be aware of it but make it invisible to the current phone app. I could mute the phone and the call wouldn't ring but the phone app would still popup in front of everything or at least on the status bar.
If a call arrives and it is in the white list then the app would do nothing..just allow the phone app to treat it.
I think I can do this by implementing my own dialer app, but would much prefer not having to do that and just use whatever the user already has.
Thank you
Carlos
i have an idea i want to do it .. some thing like truecaller .. i have a phonegap plguin to get the number oh the caller when the phone is ringing .. but i 'm not able to display any thing on the call screen ... and i have searched alot .. and i'm not an android guy to hack the code ..
this is the plugin
https://github.com/madeinstefano/PhoneStateChangeListener
and what i searchd for
Pop up window over Android native incoming call screen like true caller Android app
As Phonegap (and other Cordova based platforms) are use "Web View" to show UI I think it's not possible to show a browser in front of call screen.
But I searched for plugins and I found some thing to show a little text popup caleed Toast.
Thank you for taking the time to help me out. I don't know if this is even possible but I though it would be worth asking seeing as it is vital for my app :/ In simple terms, what I want is for a function in my application (e.g. a Toast text to show or something) to be fired when another application is doing something -- like if I send a text message in the messaging application. (example - I send a text in the text msg app and (my app is running in background as a service or something) a Toast (created by my app) displays "You sent a text!".
Thank you for your feedback!
Sincerely,
Jackson Smith
You can't do it in general for every action, and I don't know if you can do it specifically for texting.
However, for some actions (like screen lock/unlock, wifi up/down etc.) either the android system or the application causing the action will broadcast an intent that you can catch with a BroadcastReceiver (if you have the right permissions to do it). You need to know what intent you want to respond to and what permissions you need to be able to receive it.
Currently creating a VOIP application for Android and I was wondering is there any possible way to supress the In Call Dialog when sending a call over GSM and use our own 3rd party In Call Dialog or screen instead?
At the minute when we switch from our VOIP call and send it over GSM via the ACTION_CALL intent it does everything we want except it brings up the native In Call screen whereas we want our own In Call screen to display here.
So I was wondering what kind of options we would have on this?
What would you reccomend we look into doing?
Thanks in advance
Unless you are running your app on a rooted device, you cannot supress the native in call screen, nor the native calling screen.