javascript - Nativescript - cocoapod / Google Conversion Tracking -


my question how implement , use cocoapod modules in ios, want use google conversion tracking pod in nativescript application cant work. can install pod, when try use it, not possible to.

is there guides how implement cocoapod modules nativescript ?

this code try run in app.module.ts

class mydelegate extends uiresponder implements uiapplicationdelegate { public static objcprotocols = [uiapplicationdelegate];  applicationdidfinishlaunchingwithoptions(application: uiapplication, launchoptions: nsdictionary): boolean {     console.log("applicationwillfinishlaunchingwithoptions");  // google ios in-app conversion tracking snippet // add code event you'd track in [actautomatedusagetracker enableautomatedusagereportingwithconversionid:@"12345678"];   //actconversionreporter.reportwithconversionidlabelvalueisrepeatable("12345678", "aassoighsingaxx", "0.00", true); [actconversionreporter reportwithconversionid:@"12345678" label:@"aassoighsingaxx" value:@"0.00" isrepeatable:yes];        return true; }  applicationdidbecomeactive(application: uiapplication): void {     console.log("applicationdidbecomeactive: " + application)   } } application.ios.delegate = mydelegate; 

am support declare imports ? , if so, how? install pod using method explained on https://docs.nativescript.org/plugins/cocoapods.

to use cocoapod, must create nativescript plugin imports cocoapod via podfile. example, check out the podfile in nativescript-midi plugin.

the objective-c classes cocoapod available global objects once install plugin following command:

tns plugin install ../path/to/plugin 

since objective-c classes exposed globally, utilize them without importing them. check out the iosmididevicemanager class in plugin example of this. @ top of file, include comment instruct jshint not complain using pgmidi without declaring it, otherwise instantiate , use directly.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -