Track user from web page to app install & open - react-native

I have a requirement where there is a promotional mobile web page where the user can click to download and install the app via AppGallery. When the user opens the app it should display custom content and record that back to our API based on the tracking ID (coming from the web page).
If the user installed the app normally (eg. didn't go through the promo page) then no custom content displayed.
How can the app know that it was installed and opened via a promo web page?
I'm using react-native.

You can embed the AppLinking hyperlink in the promotion page to implement this function.
For Detail,pls kindly refer:https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-applinking-applicationscenarios-0000001054263231?ha_source=hms1
Hope this could help with your issue. :)

Related

HTML IMA SDK - Custom click through

Requirement:
Show the Visit Website link for the VAST clickThrough. By default in we desktop, whole ima3 container is clickable and redirecting to clickThrough url. Is there anyway to show the clickThrough url like youtube?
Note
I have tried with custom click element. But it will only for web mobile. In the web desktop it won't work.
Demo Link:
codepen.io/anon/pen/jvVpvR
Just an update on this ticket, the user seem to contact goolgle ima sdk, and they say that is just not possible
https://groups.google.com/g/ima-sdk/c/xqDZvXuSJLE?pli=1

Redirect shopify app url to custom url

I have created an app in shopify and after installing it in the store, I want when I click on the app then it will redirect to other domain like www.abc.com instead of open it in the shopify admin.
I have checked this type of functionality in many apps but don't know how to implement it. Please help me to solve this issue.
Thanks
Firstly, you need to create account as Shopify partners. Once you sign-in in your account, you will see Apps on the left side of the dashboard. You will see Redirection URL in the options available. You can also give name and other details of your app in this session.
most likely your app is an embedded app that is why it is not opening new tab upon clicking from admin app listing. you first understand whether your app required embedding functionality or not.

How to do FB feed share post without leaving my hybrid app?

I am making mobile app using Sencha touch which will be bundled as native app and installed on devices. In my app on certain pages I want to add "share" functionality which is supposed to post some data to user's feed. While testing on browser I can to do that by opening a window with FB sharing url like "https://m.facebook.com/dialog/feed" or "https://m.facebook.com/sharer.php" and passing all related params as explained in https://developers.facebook.com/docs/reference/dialogs/feed/
But when this app is bundled and I share with this, user is moved to browser and cannot return to app because redirect_uri cannot point to app which is why I wanted to open this dialog within my app, probably in an iFrame. This is also not possible because these dialogs are not allowed to be embedded in iframe by META tags and in order to surpass it I have to do user login which again is another dialog which I cannot open in my app's iFrame.
I also looked at sample sencha app http://blooming-day-7830.herokuapp.com/ but it also takes user to separate login page instead of opening in-app dialog.
So my questions is how does hybrid apps connect with FB without moving out user to browser?
if you decide to use PhoneGap you can try the following two options. You will have to check for the iOS version before you switch your Phonegap call to. . .
Option 1 : for iOS before 6.0
Phonegap has a pretty nifty ChildBrowser plugin that you can use to load the FB share page without leaving the app for iOS 5.0 and below.
Option 2 : for iOS 6.0+
Facebook Share functionality has now been added to iOS. So all you have to do, is call a custom plugin class that you create, and call the standard FB share code using a basic Phonegap plugin call. You won't leave the app, the ChildBrowser doesn't have to show up, instead, you'll get the stock iOS-FB share sheet that will show up, you can add pictures, text, and so on, and post to facebook.

How do you associate a Page with an App, now that the migration deadline is over?

Here's the situation: I have a native iOS app that had its entry in created Facebook Developers before App Profile Pages were deprecated. There is an automatically created App Profile Page for the app, but when I view it, it has a yellow box saying:
Removing App Profile Pages App Profile Pages are now deprecated. We
recommend updating any links that you have shared to your App Profile
Page to point to your new target Page or app. Please save any content
or Insights that you wish to keep. This content is accessible via the
Graph API with any valid access token. For additional information,
please review this post:
https://developers.facebook.com/blog/post/2012/02/01/how-to--migrate-your-app-profile-page/
Before February 1st, there was a link to migrate this page to a regular Facebook Page, but now there isn't. I've created a new Facebook Page according the the docs, and the page has the same name as the app and the category is set to Products/App. But I see no way to associate this new page with my app.
How are we supposed to associate a new Facebook Page with an existing app?
So I ended up deleting my app on Facebook and creating a new one. This meant changing the App ID strings in my iOS app and in its URL handler, but now it works correctly, and I can create a normal Facebook Page for the app. If you have an existing app that customers are already using, that means you'll break the app unless they've updated it on their iOS device, and you lose everything on the old page.
To associate an existing Facebook Page with an App:
Go to your Facebook Page and click "Edit Page" section
In the Basic Information tab, set Category as "Brands & Products" -> "App Page"
Make sure the Page name is the same as the App name
Go to your Facebook App "Edit App" page, and now you will be able to choose the Page as the App page.

How do I get an APP ID for Facebook on my web site?

First of all, my simple purpose is to add a Facebook login button to my web site. So I go to the login button description.
I must be thick headed, but I cannot get an APP ID. Under the "Authentication" writeup it says, "The JavaScript SDK requires that you register your website with Facebook to get an App ID (or appId)." Clicking on "Register Your Website" takes me to the APPS page. And since the login button is indicated under "Websites", I click that and it just takes me to another page that says I must register my website. I am ready to pull out what hair I have left.
What am I missing? Do I have to create a "new" app? I can't call it login since apparently that already exists.
You need to create an app here:
http://developers.facebook.com/
Click on Apps -> Create New App
Give the app a name etc the you will need to add your websites URL into the Website section.