@@ -33,6 +33,7 @@ foreign import ccall runInWKWebView
33 -> StablePtr (IO ()) -- applicationWillEnterForeground
33 -> StablePtr (IO ()) -- applicationWillEnterForeground
34 -> StablePtr (IO ()) -- applicationWillTerminate
34 -> StablePtr (IO ()) -- applicationWillTerminate
35 -> StablePtr (IO ()) -- applicationSignificantTimeChange
35 -> StablePtr (IO ()) -- applicationSignificantTimeChange
36+ -> StablePtr (CString -> IO ()) -- applicationUniversalLink
36 -> Word64 -- whether to run requestAuthorizationWithOptions
37 -> Word64 -- whether to run requestAuthorizationWithOptions
37 -> Word64 -- Ask for Badge authorization
38 -> Word64 -- Ask for Badge authorization
38 -> Word64 -- Ask for Sound authorization
39 -> Word64 -- Ask for Sound authorization
@@ -52,6 +53,7 @@ data AppDelegateConfig = AppDelegateConfig
52 , _appDelegateConfig_applicationWillEnterForeground :: IO ()
53 , _appDelegateConfig_applicationWillEnterForeground :: IO ()
53 , _appDelegateConfig_applicationWillTerminate :: IO ()
54 , _appDelegateConfig_applicationWillTerminate :: IO ()
54 , _appDelegateConfig_applicationSignificantTimeChange :: IO ()
55 , _appDelegateConfig_applicationSignificantTimeChange :: IO ()
56+ , _appDelegateConfig_applicationUniversalLink :: CString -> IO ()
55 , _appDelegateConfig_appDelegateNotificationConfig :: AppDelegateNotificationConfig
57 , _appDelegateConfig_appDelegateNotificationConfig :: AppDelegateNotificationConfig
@@ -65,6 +67,7 @@ instance Default AppDelegateConfig where
65 , _appDelegateConfig_applicationWillEnterForeground = return ()
67 , _appDelegateConfig_applicationWillEnterForeground = return ()
66 , _appDelegateConfig_applicationWillTerminate = return ()
68 , _appDelegateConfig_applicationWillTerminate = return ()
67 , _appDelegateConfig_applicationSignificantTimeChange = return ()
69 , _appDelegateConfig_applicationSignificantTimeChange = return ()
70+ , _appDelegateConfig_applicationUniversalLink = \_ -> return ()
68 , _appDelegateConfig_appDelegateNotificationConfig = def
71 , _appDelegateConfig_appDelegateNotificationConfig = def
@@ -122,6 +125,7 @@ run' mUrl cfg f = do
122 applicationWillEnterForeground <- newStablePtr $ _appDelegateConfig_applicationWillEnterForeground cfg
125 applicationWillEnterForeground <- newStablePtr $ _appDelegateConfig_applicationWillEnterForeground cfg
123 applicationWillTerminate <- newStablePtr $ _appDelegateConfig_applicationWillTerminate cfg
126 applicationWillTerminate <- newStablePtr $ _appDelegateConfig_applicationWillTerminate cfg
124 applicationSignificantTimeChange <- newStablePtr $ _appDelegateConfig_applicationSignificantTimeChange cfg
127 applicationSignificantTimeChange <- newStablePtr $ _appDelegateConfig_applicationSignificantTimeChange cfg
128+ applicationUniversalLink <- newStablePtr $ _appDelegateConfig_applicationUniversalLink cfg
126 -- AppDelegate notification configuration
130 -- AppDelegate notification configuration
127 let ncfg = _appDelegateConfig_appDelegateNotificationConfig cfg
131 let ncfg = _appDelegateConfig_appDelegateNotificationConfig cfg
@@ -143,6 +147,7 @@ run' mUrl cfg f = do
143 applicationWillEnterForeground
147 applicationWillEnterForeground
144 applicationWillTerminate
148 applicationWillTerminate
145 applicationSignificantTimeChange
149 applicationSignificantTimeChange
150+ applicationUniversalLink
146 (fromBool requestAuthorizationWithOptions)
151 (fromBool requestAuthorizationWithOptions)
147 (fromBool $ Set.member AuthorizationOption_Badge authorizationOptions)
152 (fromBool $ Set.member AuthorizationOption_Badge authorizationOptions)
148 (fromBool $ Set.member AuthorizationOption_Sound authorizationOptions)
153 (fromBool $ Set.member AuthorizationOption_Sound authorizationOptions)