How do I make my mobile game send a request that is shown as notification like in Candy Crush Saga game.
I went through this App requests successful, but no notification shown but can't find the solution. I don't know what to put in my canvas URL.
GAME is developed in Unity3d.
Solved ..... Your mobile app must pe on facebook (i.e on facebook appcenter ) ..then only it will be shown as notification
I faced the similar issue .. there is something that need to be done on FB App settings->Basic, Add another platform "Facebook Canvas". This solved the issue
The canvas apps means- the apps displayed inside facebook.com.
I think you are having the mobile app not a canvas app, so Notification API, which is still in beta do not supports the notification in mobile. Acc to doc-
Currently, only apps on Facebook.com can use App Notifications. Notifications are only surfaced on the desktop version of Facebook.com
So instead of notifications API, you can use different kind of Requests- whichever is more significant in your case.
Related
I am making game with Unity v5.2.1 + Facebook Unity SDK v7.2.0 for android. My game have feature to invite friends. This feature implemented by calling FB.AppRequest() function.
It works quite well, but the problem is my friend not receiving an android notification. The only way to know that the invitation is sent, is by opening facebook android app and click the world icon (notification page) on facebook.
How can i show an android notification when invitation is sent to friend?
Facebook does not do that for you automatically. You need to implement this system yourself.
Here is how I would do it:
A sends AppRequest to B in you app
In the callback, you know the target ids from the "to" list, report that to your server if you have one (and it is required for this system to work)
Server sends a push notification to the target device that is associated to the target facebook user id
I'm trying to send notifications to user through an app, but they don't show in any mobile device.
For example, the user makes an action that sends a notification o other user. If he is on a Computer browser he can see the notification, but in iOS/Android/Mobile Facebook the notification don't show up.
Can you guys help me?
Regrads,
Elkas
Are you talking about the Notifications API where you make a POST request to /{recipient_userid}/notifications?
If so, this is intended behaviour. From the docs:
Note: Only apps on Facebook.com can use the Notifications API. Also
these notifications are only surfaced on desktop version of
Facebook.com.
I have built a game for iOS that uses Facebook Connect, and I will be making a Facebook version of the same game. Do I use the same applciation ID for both games?
Yes you would use the same app id for both games. In the "basic" tab of your app settings you specify what formats your application will be used on. This means you won't have to bug your users to authenticate 2 different apps (I'm assuming you might want them to use both versions).
Right how it is now, you can't do that from the app management screen. Or at least for website app and facebook app is impossible to use same app id (you have to put the url for website)
I am working in face book functionality in my apps. I have integrated the latest Face book-IOS-SDK. When runs the application, the application is started and runs in the safari browser. Now I want to load the application in the user view(FB web view) instead of Safari. How can I achieve this?
Facebook doesn't want you to. Facebook's new SDK wants the user to login into Facebook once, and than that Facebook login be used in every app on the device that uses Facebook. Because of the way the iPhone works, the way they had to do that was through safari so that each app could get that info. You can go back to the original way (which so far I personally prefer), but I'm not entirely sure how.
However, if you use the new way, it will automatically redirect the user back to your app once they finish authenticating it. Also in the Safari page they can give your app permissions, ie. post status updates.
Is it possible to implement IPhone's push notification service for a
Webapp that has an icon on the "desktop"? If so how?
That depends on exactly what you mean by Webapp that has an icon on the "desktop"?
No, if you're referring to a webapp where you have saved a link with Add to Home screen as per this Apple instruction.
Yes, if your webapp is a thin CocoaTouch shell using webkit.
i have an alternative solution for this:
1) create a gmail account and get gpush app on your iphone (setup the gmail in the app).
2) instate of sending direct notification to iphone, you can send an email from your webapp to the gmail account.
3) within 5 sec. you will receive the push notification.
hope this help.
You can always delegate the messaging to 3rd party notification apps.
One great example is Boxcar (http://boxcar.io/).
You can have your web app send notifications via their API and have them delivered to the app. Lastly, you can the use deeplinks in your message to open your webapp to point the user to the content item you wanted to bring their attention to.
No, it's not possible. It's only for cocoa touch (AppStore) apps. If you want more info, take a look on the documentation.
another alternative: use an sms service like http://www.smstrade.de/ to send an sms to the user's phone. That's the way I do it.
Another provider for sending sms as notification is https://bulktrade.de
There works world wide
You can use HTML5 to introduce your own push messages. From wikipedia
"For the client side, WebSocket was to be implemented in Firefox 4,
Google Chrome 4, Opera 11, and Safari 5, as well as the mobile version
of Safari in iOS 4.2.1 Also the BlackBerry Browser in OS7 supports
WebSockets."
To do this, you need your own provider server to push the messages to the clients. If you want to use APN (Apple Push Notification), you must have a native application which must be downloaded through the App Store.
From iOS 6.0 I noticed that a WebApp icon placed on homescreen automaticly refreshes after each webkit open of webapp. Of course if you change this icon on the webserver. So theoretically you can display any informative content in this icon(numbers, status etc) BUT it will not refreshes instantly - only after opening and closing a webkit webapp.