s***@samexsys.cn
s***@samexsys.cn
  • 发布:2025-03-28 12:34
  • 更新:2025-03-28 12:34
  • 阅读:21

Android 继承PandoraEntry类无法收到”打开应用内特定页面”的通知消息,“启动应用”的通知消息正常收到

分类:uni-app

Uniapp 4.56

我们做了离线基座,想在应用加载时加入保活与排除电池优化的逻辑,但是发现继承PandoraEntry类,并且配置到AndroidManifest.xml
就会出现:无法收到”打开应用内特定页面”的通知消息,“启动应用”的通知消息正常收到
还原使用原来的io.dcloud.PandoraEntry就可以正常,请问是否有方法解决?

另外,我接入了FCM,但是现在是在线推送还没到FCM的层面?

AndroidManifest.xml 片段

 <activity  
            android:name="io.dcloud.CustPandoraEntry"  
            android:configChanges="orientation|keyboardHidden|keyboard|navigation"  
            android:hardwareAccelerated="true"  
            android:label="@string/app_name"  
            android:launchMode="singleTask"  
            android:screenOrientation="user"  
            android:theme="@style/TranslucentTheme"  
            android:exported="true"  
            android:windowSoftInputMode="adjustResize">  
            <intent-filter>  
                <action android:name="android.intent.action.MAIN" />  
                <category android:name="android.intent.category.LAUNCHER" />  
            </intent-filter>  
            <intent-filter>  
                <action android:name="android.intent.action.VIEW"/>  
                <category android:name="android.intent.category.DEFAULT" />  
                <category android:name="android.intent.category.BROWSABLE" />  
                <data android:host="io.dcloud.unipush" android:path="/" android:scheme="unipush" />  
            </intent-filter>  
        </activity>  
        <activity

CustPandoraEntry.java

public class CustPandoraEntry extends PandoraEntry {  
    @Override  
    protected void onCreate(Bundle bundle) {  
        super.onCreate(bundle);  
    }  
}  
2025-03-28 12:34 负责人:无 分享
已邀请:

要回复问题请先登录注册