Reputation: 3
Is there anyone to help adding custom sound to ionic 5 and capacitor push notification with one signal, It works good with cordova but now I want to migrate to capacitor
Upvotes: 0
Views: 1335
Reputation: 336
I recently integrated capacitor with one signal. You can try following the instructions(step 1 to 5) in this document: https://documentation.onesignal.com/docs/ionic-sdk-setup.
The following notes may also help you:
npm install onesignal-cordova-plugin
and npx cap sync
(commands in "Ionic Capacitor" tab). Cordova plugins installed in this step works all fine with Capacitor.NotificationService.swift
if you select this extension, otherwise you will see NotificationViewController.swift
).Upvotes: 0