I implement the Branch.io's deeplink .However the problem is when i share the link users can first click the link and it opens the app , everything is ok but after you close the app and click the same link again it redirects you to App Store and another interesting issue is when you open the app by yourself it acts like you click the link which directs you to the target . If you do this try like 10 times , every time(10 times) you open the app by yourself it directs you just like you click the link in the same order that you click
Steps i am taking :
Open Facebook From Safari
Click the link from message that i recieve from friend
Facebook directs me to app (Everything is fine)
I click home button and terminate the app
I go back to safari , safari reopens due to safari app coming from background to foreground so that it reopens the last page which is the deeplink
This time safari directs me to App Store
Since then any other my app's deeplink that i tap from WhatsApp , Facebook , Twitter etc. just goes to App Store
Related
I started my applicaiton, its open an url in safari. On my website the user can login and do some work. After the user did it the website redirect to the universal link. At first it is working fine, but if the user start again my application, open my website from it (the safari already show my website), login again and redirect to the universal link, show the universal link, and on the top I see a bar where i can open my application.
If the user didn't login to my website, just clicked on the button to redirect to my universal link the ios9 open my application.
Have you got any idea, what's wrong? Maybe the iOS 9 doesn't like the autoredirect to universal link?
Universal links does not work with redirections.
check https://stackoverflow.com/a/32751734/127493
I just been on a similar issue where I clicked the link on the top right side of the screen, disabling the automatic opening in my app.
since you see the banner, the user has to scroll a bit (to show the banner "open" ) and all redirections will occcur on your app again (and not safari)
I am trying to implement like in my Objective C application. If I am not logged into Facebook, then after tapping Like button, application opens login screen. I will log into my account. Then screen goes light gray with gray logo of Facebook for a while (with 2 shortly showed grey facebook screens before that) and then I am redirected back into my app. If I am logged into Facebook when running application, everything is the same except not showing login screen.
So my problem is, that I am not getting correct confirmation dialog that should appear after logging into FB account and I am redirected back into my app. Like is not placed.
What can be cause of this behaviour?
I have placed all 3 needed rows into .plist and this is how I am creating like button (p_webView is my subclass of UIWebView):
if (p_webView.fbLikeButton == nil) {
p_webView.fbLikeButton = [[FBSDKLikeControl alloc] init];
}
p_webView.fbLikeButton.objectID = p_webView.article.url;
[p_webView.fbLikeButton setFrame:CGRectMake(p_webView.fbLikeButton.frame.origin.x, height + 5, p_webView.fbLikeButton.frame.size.width, p_webView.fbLikeButton.frame.size.height)];
[p_webView.fbLikeButton setCenter:CGPointMake(p_webView.frame.size.width / 2, p_webView.fbLikeButton.center.y)];
[p_webView.scrollView addSubview:p_webView.fbLikeButton];
More information - I have tried this on simulator (there I do not have FB app, so it was using Safari only). After loggin in, I have got error:
"The page you requested cannot be displayed at the moment. It may be temporarily unavailable, the link you clicked on may be broken or expired, or you may not have permission to view this page."
As it might be difficult to find solution - one needs to be in FB app as administrator, developer or tester for like button to work when testing app that has not been approved by Apple for using native like button yet.
You are doing right.
Maybe you are missing something:
You have to create fb app id and add it to iOS app. So you can open fb app when tap on Like button.(I think you did this)
You have to add your fb acc (using to login) to dev/test roles in your fb app. If not you will be pushed back to iOS app after login to fb (in fb app or safari). <--- I think your problem is here.
Ref: https://developers.facebook.com/docs/apps/test-users
If you want everyone can login and like, you have to Submit Your App for Review (with Native Like button). After that, everyone can use Like button.
For the fb app setting, in the "Status & Review" tab, turn on "Do you want to make this app and all its live features available to the general public?"
After that you can see this "This app is public and available to all users" in Dashboard tab, instead of "This app is in development mode and can only be used by app admins, developers and testers"
I have a native mobile iOs app, that shares updates on Facebook. This all works.
When a user shares something through the app, you get the following in the Facebook news feed:
User X shared a link via My iOS App.
You can then click on the "My iOS App which tries to open a URL like "https://www.facebook.com/apps/application.php?id=XXX"
That URL shows the error "Sorry, this page isn't available". On the Facebook developer page I see "This app is live" so I'm wondering why the URL isn't working.
Is there some extra action I need to take?
Select "App Info" on the left side when you are in developers.facebook.com, as shown below
,
and then fill in your app details, and click the button "Create New Page", as shown in the second diagram below
.
This will lead you to the setting up of an app community page for your app. Once completed, select the new page as the app page, and save. The "via" link will go to this page.
check Sandbox Mode should be turn "off"
Have you submitted your app page for review? Go to Edit App -> App Details (left side) -> Submit App Detail Page
Enter your App Store App ID in the settings of your Facebook app. Otherwise, Facebook can't find the app on the device to open it.
The situation is like this:
User opens app from a website using a custom urlscheme
User does stuff in the app
User clicks button in the app to return to the website in Safari.
I have tried opening a new tab containing a javascript:window.close() but this does not work on iOS 6.1.
So my question is: Is there a way to open Safari to view the website the user left from? Either with a working new tab that closes itself or a different route?
When you open the app with your custom url scheme, pass the actual page url as an argument.
mycustomUrlScheme://mydomain.com?objectid=1234&callback_url=encoded_url
In your app, handle the url for the content info and keep the page url to open it afterwards. It will make safari open a new tab. But that should be a good start.
As far as i understand you can do it.
user opens mobile safari for example http://www.example.com
user clicks a link that is appscheme://open and the application become active
user taps a button to open safari for example http://www.example.com?q=test
for the third step you can use [[UIApplication sharedApplication]openURL:url]
I use ChildBrowser and cordova - newest version. When I open ChildBrowser in my app and press the home button of my iPhone the app is running in the background.
When I click my app again, my last action window of course comes up. In this case ChildBrowser is coming up again. Of course there is an website where user must be authenticated, when I use ChildBrowser. By default the user will get logged out after one day or so because of security.
How can I check first, if the user is still authenticated before ChildBrowser is coming up again when I return to my app?
Sorry, this is the answer to my question.
RTFD! :)
http://docs.phonegap.com/en/1.0.0/phonegap_events_events.md.html#resume