In react native the iOS Universal links are working perfectly when the app is in kill/quiet state I tested it with safari but when the app is in background state it only opens the app not working in background state my listener is not working.
Linking.addEventListener('url', async (link) => {
console.log('Linking-addEventListener-link', link);
})
2
Answers
Please check this method is added or not into AppDelegate.m file.
For everyone having the same issue, just make sure that
#import <React/RCTLinkingManager.h>
is just at the top of the imports, do not add it inside any#if #endif
import condition.also add
just before the last
@end
inside the@implementation AppDelegate
, hope it might help someone.