iOS Question Retrieve Firebase Dynamic Links

Royni Lim

Member
Licensed User
hi everyone...

I have followed the steps to use firebase dynamic links on iOS. when I click a link from any application, my application can already be opened. but in Application_OpenURL event is not triggered.
How do I get the event triggered?

ps.
if using chrome, the event runs with the url scheme and the app and event run normally.
 

Royni Lim

Member
Licensed User
i try to follow these steps from google firebase documentaton :

B4X:
@end  
@interface b4i_main (notification) <UNUserNotificationCenterDelegate>
@end
@implementation b4i_main (notification)
- (void)userNotificationCenter:(UNUserNotificationCenter *)center
       willPresentNotification:(UNNotification *)notification
         withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler {
        completionHandler(UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionSound );
   }
@end
@interface b4i_main (fbdl) <UIApplicationDelegate>
@end
@implementation B4IAppDelegate(DL)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {      
    [FIRApp configure];  
    return YES;
}

- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity
    restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
        if ([userActivity webpageURL] != nil) {          
            NSString *incomingURL = [userActivity webpageURL].absoluteString;
            NSLog(@"Incoming URL is %@", incomingURL);                  
            return YES;          
        }else{          
            return NO;
        }
       
   }
@end

with that inlince code, i can compile, but when i start the app, it goes black screen.
based on this https://www.b4x.com/android/forum/threads/nfc-tag-reading-in-background.111067/#post-692992, how to convert it to B4i OBJC code.

great thanks to anyone can help..
 
Last edited:
Upvote 0
Top