In my mobile application I open a facebook requests dialog and send my friends some requests. How can I achieve the following behavior? When android user opens notifications bar of his smartphone and taps my request - my application (which sent it) should open (or market should open on my application's page). Now when user taps on my request a facebook application opens.
How can I set what happens when user taps my facebook request in the notifications menu? E.g. candy crash saga requests open the market on the CCS page. My requests open the facebook app.
You mean you want to Start Another Activity that you've written?
Or, you want to launch the Facebook app from your app. Check out this question.
Related
I'm building a Webview (Android app) of a website that has register/login system.
Using OneSignal, now I need Android push notification to specific user that logged via the app.
Let's say:
User A has an account on www.mysite.com
The android app only loads www.mysite.com on a Webview
When User A logged in via the app, and do something, I need to send push notification to that user, to his android device
Does anyone know how to implement that?
Thank you.
I have seen some apps that take me into a web page and after reach certain endpoint the browser closes itself automatically then I continue in the original app.
Another app that takes me to my SMS messaging app then autofill the textbox and when I click send, again the same thing happens the SMS app closes itself and then continue in the original app, how can I get the results of those intents.
In both cases, the app returns with data received I think it's from the backend
Have a look at Android deeplinks
Basically you create some deeplink for your app like yourapp://awesomeintent and the website calls this link. In your AndroidManifest.xml you register some activity for this deeplink with the help of intent-filters and then your app pops up as soon as any other app/website opens your deeplink.
Keep in mind: If the user has more than 1 app which can process the deeplink, Android will ask him which app he wants to choose to do so.
I am developing an Android application in which I would like to restrict an user to access only one device at a time.
Lets say, User A is logging in first time using the Android application and from next time,the app logs in automatically using the credentials stored in the local storage.
If the same user is logging in with the web application with the same credentials and changed the password, the mobile application should force the user to login as soon as the password is changed.Even if the mobile application is being active and doing some tasks , it has to be cancelled and force user to login once again.
My idea was to use Push Notification in Mobile app to terminate the session as soon as the user has logged in/changed the password from web application. But the bottle neck is that there is an option in device settings to block the notification.
Please help me to find a way to overcome this.
There is NO option in devices to block Push Notifications. But there is an option to stop an App from showing Notifications in the Device Notification Bar and also there is another option to stop an App from using Data (Internet) in the background (when not in use!). This is a different case with your issue.
Here is how! On your server send message to a user Device using Firebase. You should send Data Messages so as to gain full control and because you do not need to show any notification to a user device. When that message reaches to the user. You should Logout the user. Remember all this happens in the background the user does not notice anything or any notification shown.You can learn more about message types here.
I'm building a Webview (Android app) of a website that has register/login system.
Using OneSignal, now I need Android push notification to specific user that logged via the app.
Let's say:
User A has an account on www.mysite.com
The android app only loads www.mysite.com on a Webview
When User A logged in via the app, and do something, I need to send push notification to that user, to his android device
Does anyone know how to implement that?
Thank you.
I am working on a game in Unity3D and I want to integrate facebook with it.
I want to be able to send a gift request for my app to a friend, but the thing is they appear in user's notification panel of Facebook but they don't appear in Notification Panel of my game. I want them to see a notification, like in Candy Crush(when someone receives a request in Candy Crush this also appears in the notification bar as push notification).
I want those requests to also appear in notification bar of the device, both Android and iOS. I need to know how they do it. Is there any service i can use or some processing from fb requests.
The candy crush notifications are dispatched to the candy crush app itself, not by facebook. If you want to do so please have a look to Unity3D Push notifications.