Branch.io Deferred deeplinking in cordova - android

Generally, when user scans the QR code or sends the designated SMS in the hotel, the user should:
- if the app is not already installed, it should be installed with the current location's content
- if the app is installed already (i.e. from a visit to another hotel using our system), it should check and see if the app needs updating, update if needed, and then load the content for the current hotel location.
But I got deeplinking only how to write the cordova(.js) code in js file.
i followd the link:https://dev.branch.io/getting-started/sdk-integration-guide/guide/cordova/
but there is no infromation for how to redirecting to specific hotel.
So please help me from this problem.
Thanks in advance

i had read about this in a article that you will have to re-direct them according to your ui-router. By default it will always open your index file. but if you want the deeplink to work on specific pages you have configure them in your ui-router.This article explains it link

Alex from Branch.io here: what you're trying to do is Deep Link Routing. This is what allows you to embed information about the hotel into the QR code/SMS link, and then after the app is open you can make sure the user sees the correct content. We have a guide about it here

Branch deffered deeplink is worked fine for me by following this link:https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking/blob/master/testbed/www/js/index.js

Related

How do I receive query parameters from Firebase Dynamic Links using react-native-firebase?

I've followed the instructions from the official react-native-firebase documentation and everything, as per the instructions, works fine.
It is my understanding that I should be able to create a link like the following in the Firebase Dynamic Links console: https://myapp.page.link/offer?offerid=123456 and be able to receive the offerid parameter in my app. However, when I click that link (in the iOS simulator, Android emulator, and on a real device) the app opens, but I just get a link with the following data:
Received initial link {"minimumAppVersion": null, "url": "https://mysite.co/offers"}
There are no query string parameters attached. Am I missing something in the Firebase Dynamic Link configuration? Or in my implementation of react-native-firebase that was not covered in the documentation linked above? Or is this actually just not possible?
I think you are confusing deep links with dynamic links. Dynamic links handle your deep links to content depending upon the platform.
Example you have a deep link: https://example.com/offer?offerid=123456 .
You wish to open it in your app depending upon the platform.
Suppose you created a domain for dynamic link from console: https://myapp.page.link
Now you can create a dynamic link which opens the deep linked content on your app. The dynamic link can take in only specific parameters as mentioned here. However you can pass your parameters to your deep link,
https://myapp.page.link/?link=https%3A%2F%2Fexample.com%2Foffer%3Fofferid%3D123456&apn=com.example.app&ibi=com.example.app
The above dynamic link opens the deep link in your android app with package name com.example.app and ios app with bundle ID com.example.app.

Deeplinking Squareup pos app is not working

The documentation link: https://developer.squareup.com/docs/pos-api/build-mobile-web#step-5-test-your-code suggest straight forward code like this:
<a href="intent:#Intent;
action=com.squareup.pos.action.CHARGE;
package=com.squareup;
S.browser_fallback_url=https://my.website.com/index.html;
S.com.squareup.pos.WEB_CALLBACK_URI=https://my.website.com/index.html;
S.com.squareup.pos.CLIENT_ID=sq0ids-yourClientId;
S.com.squareup.pos.API_VERSION=v2.0;
i.com.squareup.pos.TOTAL_AMOUNT=100;
S.com.squareup.pos.CURRENCY_CODE=USD;
S.com.squareup.pos.TENDER_TYPES=com.squareup.pos.TENDER_CARD,com.squareup.pos.TENDER_CASH;
end">Start Transaction</a>
I tested it and it does not open any link, my devide already have app installed.
When I try this code:
Take a QR code 2
It open play store app with squareup pos app information, I need to directly open the app and not play store screen of the app, is there any way?
*UPDATE:
I got transactions to work after adding S.com.squareup.pos.LOCATION_ID={{ my_location_id }}. The location ID can be found in Square Developer Portal > Locations. Also if the POS app is passcode protected, you have to open and login with passcode before sending transaction.
*END UPDATE
I've been working through this same issue. I still haven't gotten a transaction to work, but have at least gotten the app to open.
Make sure the CLIENT ID is your production application ID. NOT sandbox.
The WEB_CALLBACK_URI needs to match the Web Callback URL defined in your Square Developer Portal > Point Of Sale API.
I hope this helps. If you do figure this out and get transactions to work, please post your solution for me and others who are sure to run into this issue since the documentation is lacking.

Android Referal System withing my app

I want to make an app which will pay users money on downloading another apps from within my app, so how can i track that user had downloaded that app or not, and i want to make sure that after user registered in the downloaded app then only he/she is going to get money, so how can i do this.
Some examples of these types of apps are : Ladooo app, TaskBucks App, Pokkt App,
I found following links which helped me somehow but it is not clear :
http://android-developers.blogspot.in/2010/12/analytics-for-android-apps.html
https://developers.google.com/analytics/devguides/collection/android/v4/
you can retrieve the list of installed applications in the following manner
// retrieve the list of installed applications
List<ApplicationInfo> apps = mPm.getInstalledApplications(0);
can get the package name of the app through
String pkg = apps.get(i).packageName;
I know this is not the full answer but i hope this helps
Not Sure About your requirement or not have idea about playstore api but can give simple logic for this, hope it will help.
When any user share or refer the application for download to other user, create one unique id from the serverside(combination with user who refer) in simple word redirect url to playstore with uniqueid and share that link with intent.
When user register you can check or if redirect url for playstore is via your server than you can send money or points when redirect link callback on server.
check this
or you can refer some codes on github:
here or here

Ok.ru integration with ios - Redirect URI Error

I am trying to integrate the ok.ru sdk for an iOS game following these instructions.
The app is created on the website following instructions mentioned here. But when I try to post something, I get the error message
"Indicated redirect_uri is not registered in App Settings.
redirect_uri:ok1139715840://authorize"
The problem is that the redirect uri contains the app id that is obtained only after app creation.
According to this link, the redirect uri needs to be mentioned when creating the app. I cant even go back and edit the app settings as when I click on the app, it says "Page not found".
Has anyone successfully integrated this sdk?
Can some instructions be provided (in english) on how to do this successfully and get rid of the current error??
The same error will arise with the android sdk as that also a redirect uri as shown in the link above.
Go to odnoklassniki API page, and chan your application url to "http://localhost" while you developing.
Once it's in production then change with your site.
API page : http://apiok.ru
Finally figured out:
You have to scroll to the bottom of the page and then you will find an App Settings button. Click on it, enter your application secret and then you will be able to edit the app settings.
Just go to the app settings in Odnoklassniki and add ok1139715840://authorize to accepted redirect_uri list

Phonegap ChildBrowser Issue

I am creating a mobile app which connects to some jive based community using childbrowser.
I can easily open the community, login and do stuff.
But I also need to fetch session details in my app, so that I could use these to fetch JSON strings to show user image/info on my app showing that user is logged in.
I tried working on childbrowser, but couldn't investigate much.
It seems it won't work with my community URL. While using google url it shows popups on location changes, but not for my url.
Can any one help me in fetching the data I want ?
Here is the sample code I am using to detect location change:
function openURL() {
window.plugins.childBrowser.onLocationChange= function(loc){
alert('In index.html new loc = ' + loc);
};
window.plugins.childBrowser.showWebPage("https://communityName.jive-mobile.com/#jive-login", { showLocationBar: false });
}
I am getting my login page, but after login I can't see any alert coming !!
I need to get proof of user login and user session details.
Thanks
I have just updated the ChildBrowser plugin for my own use, following code given here: How do I get the web page contents from a WebView?
I am using this to log in on Google API oAuth2, watching for the right page to load. I am using the onPageLoaded(html) event that has the (computed) html source. You might want to use this to get the html that was loaded and check for "stuff". I don't use jive so I wouldn't know where to start, but I'll put up a sample Google oAuth2 project for you to try.
HTH
EDIT:
the code is at: https://code.google.com/p/filechunkreader/
Don't let yourself get fooled by the name, this project is the repo for my Java plugins experiments. It contains so far 2 plugins, FileChunkReader and a custom version of ChildBrowser.

Categories

Resources