Is there an Angular 2 way to accomplish a custom AppDelegate like this in NativeScript? I've seen examples of how to do this without Angular, I'm just not sure where to register the AppDelegate in Angular 2.
you can just add this to your main.ts:
import application = require("application");
import { CustomAppDelegate } from "./custom-app-delegate";
if (application.ios {
application.ios.delegate = CustomAppDelegate;
}
platformNativeScriptDynamic().bootstrapModule(AppModule);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With