File tree Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -6,33 +6,13 @@ import { Application } from '@nativescript/core';
6
6
// uncomment to test Ionic Portals
7
7
import { IonicPortalManager } from '@nativescript/ionic-portals' ;
8
8
9
- const portalApiKey = `eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIyMTQ2MzUxIn0.GphiIljo40HYGWDUCWinbPGabcuFmZpujhlf2V8BQf9c0w0FFCOlTZffIUQGIaYLOLMR6BSu95SBpMXTtBSwJ-0Vlf56-SxIfNscR-017eKg2nK8jKxM3L65pN_k3GpoScIg867_gDo-f6IF-UGJcq2ZDCIUFdIx667Dixe82GtCs0g8b3NCXhpx7sXqRaJm8w3W1t1k53VBLRDyVyJhVk7qYXAqzQ6X0TQP0EcWzeR9Ivi3x-6p9n3e-APFVjuAGVEhmJdoTkTCTwIB1FG_Qn_kCMu4KGjL8drdszXeNNJ7IYpOs8QxrOUGcERsap4VASdHQjJSIPLSUjaaNYM0FA` ;
10
-
11
- const setupIonicPortals = ( ) => {
9
+ Application . on ( Application . launchEvent , ( ) => {
12
10
// Register IonicPortals
13
- IonicPortalManager . register ( portalApiKey ) ;
11
+ IonicPortalManager . register ( '<portal-api-key>' ) ;
14
12
15
13
// Create as many Portals as you need to use in your app
16
14
IonicPortalManager . create ( 'ionicWebStart' ) ;
17
15
IonicPortalManager . create ( 'ionicWebModal' ) ;
18
- } ;
19
-
20
- if ( global . isIOS ) {
21
- @NativeClass ( )
22
- class CustomAppDelegate extends NSObject implements UIApplicationDelegate {
23
- static ObjCProtocols = [ UIApplicationDelegate ] ;
24
-
25
- applicationDidFinishLaunchingWithOptions ( application : UIApplication , launchOptions : NSDictionary < string , any > ) {
26
- setupIonicPortals ( ) ;
27
-
28
- return true ;
29
- }
30
- }
31
- Application . ios . delegate = CustomAppDelegate ;
32
- } else {
33
- Application . on ( Application . launchEvent , ( ) => {
34
- setupIonicPortals ( ) ;
35
- } ) ;
36
- }
16
+ } ) ;
37
17
38
18
Application . run ( { moduleName : 'app-root' } ) ;
You can’t perform that action at this time.
0 commit comments