私の質問は、実際にiOSでcocoapodモジュールを実装して使用する方法です。Googleコンバージョントラッキングポッドを自分のnativescriptアプリケーションで使用したいのですが、うまく動作しません。私はポッドをインストールすることができますが、私はそれを使用しようとすると、私は可能ではありません。Nativescript - cocoapod/Googleコンバージョントラッキング
nativescriptでcocoapodモジュールを実装するためのガイドがありますか?
これは私が私の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 this code to the event you'd like to track in your [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;
で実行しようとするコードですが、私は任意の輸入を宣言するためにサポートするのですか?もしそうなら、どのように? https://docs.nativescript.org/plugins/cocoapodsで説明されている方法を使用してポッドをインストールします。