WebsiteBeaver / CordovaCall

Cordova CallKit & ConnectionService plugin for iOS/Android that displays the native call UI for VOIP apps
MIT License
196 stars 91 forks source link

Add custom ringtone on a Meteor app #38

Closed nunovieira closed 6 years ago

nunovieira commented 6 years ago

Any Meteor users here? How to add a custom ringtone to a Meteor app?

I've added the ringtone file in cordova-build-override/ and used App.appendToConfig(element) to declare the resource-file in mobile-config.js. But get an error when meteor run ios-device:

Subproject Path: CordovaLibt                 |
=> Errors executing Cordova commands:         

   While adding platform iOS to Cordova project:
   Error: Source path does not exist: sounds/Bellcore-dr2.caf
(...)

Looks like Meteor reads config.xml before copying the ringtone file to the cordova directory. Is there any straightforward way to do this in Meteor?

Thanks

D-Marc1 commented 6 years ago

Did you try asking the Meteor team?

nunovieira commented 6 years ago

Found out there's a merged pull request and this feature will be available in Meteor 1.7 (next minor version). In the meantime, I'm looking for a workaround.

D-Marc1 commented 6 years ago

Hopefully it'll be be available soon or you'll find a solution before. Either way, there should be no issues using this plugin, as it'll use the default ringtone. You just won't be able to customize the sound for now because of Meteor.