我想在应用程序在后台打开时打开 React Native Android 深层链接。以下是我处理其他类似案例的方法:
iOS App 在后台打开:
Linking.addEventListener('url', this.handleOpenURL);
iOS 应用程序在后台关闭
Linking.getInitialURL().then(url => this.handleOpenURL({ url }));
Android 应用程序在后台打开: ? - 处理此案的最佳方法是什么?
Android 应用程序在后台关闭:
Linking.getInitialURL().then(url => this.handleOpenURL({ url }));