I have developed an android app and now I am trying to implement the same one in IOS but not easy. Please Somebody help me.
Below is my implementation in android.
as you see in the picture when a push notification arrives in the foreground state,
the "POP notification on the top" is shown where ever I am in the app. It's possible because I have developed it with one activity and multiple fragments that when a notification arrives, I can control it in the activity that whatever fragment I see, I can pop the notification.
But in IOS, due to my poor skill, It's not easy...
let me show you my current IOS structure which is under the designation.
as you see it, it has one tab bar controller which has 5 menu
and each menu has a navigation controller, and each of them also has a view controller.
In this structure, can I implement the notification like the first image?
or should I change the structure?..
currently, I don't know what I should study for solving this.. please let me know.
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.
It may sound a weird question at first but I want to learn the name of the first alert in Android so that I can research how it is done.
What I mean is, for example, while you are talking to some person on WhatsApp, some other person or group sends you a message and you are firstly alerted on top of the screen for a few seconds (which is directly clickable) and then that notification takes its place back on the notification bar, meaning you have to scroll down this time to reach.
How can I search this? Or, if anyone has any tutorial about how to implement it, I'd appreciate much.
Thanks,
Its called Heads-up Notification.
refer this link
I am given a task to show local push notification. I have successfully completed showing push notification on bar. But also I have to show local notification on app launching icon on home screen like in i-phone. See the image
I want this kind of notification. Here, may be the dialog I create using custom AlertDialog. But I'm stuck with the notification on the app icon i.e. that bubble containing notification no on upper right corner of app icon. I think this functionality is not given by android sdk. but our client says that she has seen these kinds of notifications on her Android mobile for some applications.
So is it possible in Android, and if yes then how to do it?
What you're looking for is a "badge" and I'm sorry to tell you that this does not exist on Android - your client must be mistaken.
One workaround you could do is to create a widget for your app (and you can even make it look like an app icon if you wish...), and you can add a badge or update how it looks any way you choose.
I want to achieve something in my application, but I'm not really sure which is the best option to do that. In my app I am downloading data via web server. I want to create something like global Progress Bar which must show the user how much data he is downloading from the whole application..no matter on which activity he is. I think it's the right time to say that I am using TabHost and TabGroupActivity in my application. So for now this is how I think it should look like :
For a second option I was thinking if it will be a better option to implement a notification with progress bar which is updating the downloaded data size..something similar to Google Play store notifications while downloading application :
Any suggestions what I should look for and which is the best way to do that in Android Application?
Thanks for any kind of information!
You can achieve this using Service, There may be various others approaches available to do this but here is the one I know...
Start downloading of data in a background service
Broadcast the information whenever data changes
Receive Broadcast data in your Tab Activity
Add footer or header to your tab widget and show progress bar
Keep updating the data in progress bar til your download finished
Also you can update notification from Service whenever data updates.
If you want to use the "Progress Bar In Activity" option, you are, in some way, forcing the user to open your app to check the progress while I think is much better a permanent notification taken in account by your download service.After all this is the main meaning of the Android notification Bar. In this way the user, in every moment, can easily check the progress by dropping down the menu.
My first decision was to create a custom view, which had title, some custom action buttons and textviews which I added to every screen. After that I changed to ActionBarSherlock and made some custom design for it too so it can look like the same in every version and that worked for me.
Hey Guys.
I'm working with a collegue on a android app. At some point the app starts Bluetooth by itself without user interaction. This is written in C++. Now I want to turn the main Bluetooth Symbol on, to inform the user that Bluetooth is turned on.The same for WiFi.
I could create my own notifications, but that's not what I want.
How can I access the main notification symbols in Java?
Another question about notifications:
I have a notification for my main app. Every time I click on the notification the app is restarted (onCreate is called). When I click the Home Button, when my app is in the front is shows the home screen and by clicking on the app symbol it resumes the app (onResume is called). I want exactly the same behaviour when I click on the notification. How do I achieve this?
thanks in advance
Afaik, this works only if you call it from Java, or call into corresponding Java methods via JNI, which will update the proper notifications for you.