Creating an android smart app banner - android

Is there any solution for Android devices similar to the iOS 6 smart app banner?
Here is the code for smart app banner
<meta name="apple-itunes-app" content="app-id=311507490, affiliate-data=partnerId=30&siteID=k1CkFsOh4nQ"/>

Since Chrome 44 Beta you can push your app in Chrome for Android with
a native app install banner on your website.
Please see the answer below.
Old answer
I needed that myself, so I created a jquery plugin to mimic a smart banner for Android and older iOS versions.
http://jasny.github.com/jquery.smartbanner/#android

Since Chrome 44 Beta you can push your app in Chrome for Android with a native app install banner on your website. There are a couple of criteria that need to be met in order to enable it:
You will need a web app manifest file
You will have to serve your web using https
The user has visited your site twice over two separate days during the course of two weeks.
Read more about it in the official docs from Google.

You add the Google Sign-In button to your page with a special parameter and then users can sign in and specify which device to install your app to directly from your website.
This is the most "officially supported" implementation I know of:
https://developers.google.com/identity/sign-in/web/android-app-installs
From the link:
By adding the Google Sign-In button to your web site, you can automatically prompt your users to download your Android app over the air to their Android devices. To enable this feature, you must use the same Google Developers Console project for your Web and Android clients, and configure your web app's sign-in button.
Your web app must use the Google Sign-In button to prompt your web site users to download your app the first time that they sign in. This feature is enabled by adding the apppackagename parameter to your sign-in button.

There are two APIs available:
To detect if the app is already installed use getInstalledRelatedApps (only for Chrome 80+)
Article with general information: https://web.dev/get-installed-related-apps/
Docs and demo (web+app) with code https://www.chromestatus.com/feature/5695378309513216
Show a prompt to install your app
Article with code samples: https://web.dev/customize-install/
Documentation: https://developers.google.com/web/fundamentals/app-install-banners/native

Related

Question about branch.io attribution of Facebook app install ads on Android using flutter?

We have app install attribution working for organic links on both iOS and Android using the flutter_branch_sdk.
However, for Facebook app install ads, the paid attribution is only working for iOS and not for Android (we see the install events, but they don't get attributed as paid within Branch, and don't show up as installs on the FB side either). We followed the steps here
Also tried contacting Branch support but so far they've only pointed me to this suggestion which didn't resolve the issue.
Wondering if anyone here has run into the same issue and has pointers?

Branch io: fallback to AppGallery on Huawei devices

Tell me if branch io supports fallback to AppGallery on Huawei devices without Google Play services? Now on such a device, a browser opens for me, and redirects to Google Play page of my app. Device - Huawei P40 Lite E Android 10.
By documentation branch io supports such market: https://help.branch.io/using-branch/docs/creating-a-deep-link#default-link-behavior
But there isn't any property to configure such function on branch io dashboard.
How can I check fallbacks on Huawei devices? How do I configure this functionality?
Here is my configuration:
I recommend using App Linking. The Unified Linking function allows you to configure links on the AppGallery and Google Play details pages at the same time. Different phones can automatically switch to the corresponding app store.
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-applinking-unifiedlinking-0000001070790553
There is Branch io support answer:
Thank you for contacting Branch Support.
Branch links will open the default app store on the device. On devices
where Huawei App Gallery is the default app store it will be opened to
download the app.
If you want to try opening the Huwaei app market even when there is a
different default app store, you can try entering the App link in the
format https://appmarket://details?id=com.xx.xx
Once the app is installed there is no change in the functionality due
to the source of app install.
UPD 08.02.2021 second answer:
They are two methods on how to use a single link which works on both
Google Play Store and Huawei App Gallery
Method 1 -
Set the Custom URL to point to your app on the Huawei App Gallery, on
the Configuration page. And set the $android_url parameter for all
links to the app on Google Play Store.
In this case on Huawei devices the link will redirect the users to the
Huawei App Gallery when the app is not installed. And on other Android
devices as the link will not be available, the fallback url set by
$android_url will kick in, opening the Google Play Store.
Method 2 -
Choose your app from the Google Play Store on the Configuration page.
If you have any specific links targeting Huawei users, then change the
Default Redirect for those links to the Web URL of your app on the
Huawei App Gallery.
Do let me know if this helps.
UPD 09.02.2021
On the link kindly use the Default Redirect for Android as well.
The default in this case would be the Huawei App Gallery link to your
app.
On the link data page can you add key - $fallback_url
value - The play store link to your app
After making the changes on the link, please test the link on both
Android and Huawei devices at least after an hour or two as the link
level changes sometimes take a while to reflect.
UPD 07.04.2021
We had another round of discussion with the Product team on this
issue, and they mentioned that the fallback to Huawei app gallery is
not supported anymore.
They have not provided us with the exact details, but they seem to
have been changes on the OS level on Huawei devices which has broken
the functionality and which we have been unable to fix due to certain
limitations.
Unfortunately this flow is not supported at the moment.
I do apologise for any impact this might have on your link, but it
does look like we do not have any solutions for this matter at the
moment.
You can refer to the following:
The typical link format of the application details page on Huawei AppGallery is:
https://appgallery.cloud.huawei.com/appDetail? pkgName=packagename&channelId=channelid&referrer=referrer&detailType=0&calltype=AGDLINK
Parameter description:
Packagename: required, the package name to be popularized and applied, such as com.huawei.gamebox ..
Channelid: It is recommended to fill in. To improve the channel identification degree of data analysis, it is recommended to fill in the designated identification number for each channel. If it is not filled in, the system will automatically read the package name of the source media, but the package name cannot be obtained by jumping through the webpage or offline QR code.
Referrer: not required; if not, it will be blank by default. This parameter refers to the secondary channel number. When links are posted on multiple pages (scenes) of the same media, the specific location effect of the media can be identified by the secondary channel number.
DetailType=0&calltype=AGDLINK: basic parameter, which cannot be deleted.

App Indexing- app not showing with website link in google search

I have integrated App Indexing and i tested my implementation by
Link Testing in Android Studio , Android Debug Bridge and Deep link testing tool . In all three tests I am able to open the app . But still when i do search in google I am NOT able to see my app with website link like below image.However if app is installed in device I am able to see app in choice of search autocompletion.I have not published the updated version of app in play store.Is that the reason i can't see app with website link?I am confused whether App Indexing is correctly impemented.
The app must be published on Google Play. Then you can use Preview your APK on Search Console.
Also, Declare a website association. After you make association, Google automatically starts indexing any existing or new URLs to your app.
Cheers,
MB

Facebook review approval with an Intel XDK android app fails due to missing login

I'm trying to get my android application approved by facebook, but I keep getting the same inexplicable error back:
General
One or more of your App Center Listed Platforms doesn't use
Facebook Login. Please integrate Facebook Login, and clarify how to
login with Facebook in your Review Instructions. Otherwise, remove the
platform(s) from your "App Details" tab.
Now, my app has a big blue facebook-login button on its main screen, so don't think that a missing facebook login is the problem, I think a screenshot of my facebook app settings screen holds a much more plausible explanation:
In order to add facebook support to an Intel XDK facebook app you've previously had to add a website going to html5tools-software.intel.com and use that same address as an App Domain for the application. I think the missing Facebook-login error comes from that website being tested together with my android app (which it shouldn't, it has nothing to do with my app).
What I would like to know is how to get a wrapped HTML5 application for android approved or if there are any other ways for Intel XDK apps to be approved as facebook apps (different App Domain perhaps?).
Have you tried using http://plugins.cordova.io/#/package/com.phonegap.plugins.facebookconnect
https://developers.facebook.com/policy/#login
Says that native apps must use the SDK, which is provided by the plugin.
The solution was to ignore the app domains (I was setting it to 'html5tools-software.intel.com' in accordance to intels tutorial on how to do it) and NOT add a second 'facebook app' as the tutorial says (it wants you to add a web page with url html5tools-software.intel.com). Skip those two and it works!

Can I publish a Phonegap Android app to the marketplace?

So I built an app using JQuery mobile. I then used Phonegap to wrap it in
native Android code so I have user's download it as an app at the appstore.
However, the mobile app files are hosted on a server and may change from time to time.
Since the marketplace may approve the initial app, will they allow it to change once on the
marketplace?
The content is dynamic, so will I be allowed to change it once its published?
Read this page: http://developer.android.com/guide/publishing/publishing.html for all information on publishing apps in Android Market. The page also explains about updating an app that's already in the Market.

Categories

Resources