Apple search Ads on Cordova 9
See original GitHub issueThe problem is that we don’t see any data on Apple search Ads dashboard.
node: v10.16.3 cordova: 9.0.0 xcode: 11.3.1
The plugin version is 4.1.3 but with the following changes in order to be able to build with CLI:
Removed from: src/ios/BranchNPM.h
#define BRANCH_NPM true
And added at plugin.xml and from xcode after building the framework is there
<framework src="iAd.framework" weak="true"/>
I tried both with and without
use-frameworks="true"
with no difference.
The Branch service initialisation:
function init() { return $window.Branch.delayInitToCheckForSearchAds() .then($window.Branch.initSession).then(linkHandler); }
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Apple Search Ads
Promote your app where it matters most. Apple Search Ads helps people discover your app on the App Store, matching customers with your...
Read more >iOS Platform Guide - Apache Cordova
iOS Platform Guide. This guide shows how to set up your SDK development environment to deploy Cordova apps for iOS devices such as...
Read more >Create an Apple Search Ads Campaign - Kochava Support
Click Add a Configuration. · Select Media Partner > Apple Search Ads. · Click Go. · Select Install > Postback Tools (⋮) >...
Read more >cordova-admob-ads - npm
Easy to use and very complete admob ads plugin for cordova, phonegap, intel and ionic. ... Latest version: 2.0.9, last published: 4 years...
Read more >Cordova PhoneGap Ionic - Branch Help
This change is backward-compatible with Cordova 8. Apple Search Ads: iOS. Follow the native iOS documentation for setting up Apple Search Ads.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Within Xcode, you can locate an AppDelegate.m file. You can enable early lifecycle calls here.
In this example, I enable logging to confirm ASA is working, remove it for production as it is very verbose. I then enable search ads and the longer delay as Cordova has a long launch time.
You should see the Search Ad base 64 encoded in the install json. On test devices, Apple provides a test payload so you should always see this while debugging.
If you wish to ignore the Apple test payload call this method.
This works by setting the Branch SDK to lookup Apple Search Ads before the install event. This will ensure we have it show up properly on the dashboard, we also return it in the callback to the JS code.
This is not possible from JS alone, cause the Cordova JS environment starts up after the initial install. Which means we probably sent the install without the ASA data payload.