Cordova Slack Digest

Sun, 17 Oct 2021 08:20:58 GMT

User count: 4655

Join the conversation at slack.cordova.io

Channel #cordova-android (1 messages)


Sat, 16 Oct 2021 19:33:35 GMT

@ucheozoemena says

Hi folks, please I need some help updating my manifest.xml file.

I am trying to add the snippet under “Modify AndroidManifest” at <https://pushy.me/docs/resources/fcm-fallback-delivery|this link>. I already have an existing entry in my config.xml file that looks like this:

            &lt;application android:usesCleartextTraffic="true"&gt;
        &lt;/edit-config&gt;```
So I tried changing it to this:
```        &lt;edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application"&gt;
            &lt;application android:usesCleartextTraffic="true"&gt;
                &lt;!-- Pushy Firebase Service --&gt;
                &lt;service
                    android:name="me.pushy.sdk.services.PushyFirebaseService"
                    android:exported="false"
                    android:stopWithTask="false"&gt;
                    &lt;intent-filter&gt;
                        &lt;action android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
                    &lt;/intent-filter&gt;
                &lt;/service&gt;
            &lt;/application&gt;
        &lt;/edit-config&gt;```
But that didn't work. I think what's throwing me off is how to add the nested `service` tag inside the `application` tag. Thanks in advance :simple_smile: .