如何在 Meteor 应用程序中添加 Cordova 资源文件(自定义铃声)
How to add a Cordova resource file (custom ringtone) in a Meteor app
如何将 resource-file
添加到 Meteor Cordova iOS 应用程序?
我正在使用 CordovaCall plugin。
我在 cordova-build-override/
中添加了铃声文件,并使用 App.appendToConfig(element)
在 mobile-config.js
中声明了 resource-file
。
但是当meteor 运行 ios-device:
时报错
=> Errors executing Cordova commands:
While adding platform iOS to Cordova project:
Error: Source path does not exist: all_that_she_wants_i.caf
(...)
看起来 Meteor 在将铃声文件复制到 cordova-build
目录之前读取 config.xml
。
在 Meteor 中有没有直接的方法可以做到这一点?
谢谢
您正在寻找的功能目前正在开发中,将在 Meteor v1.7
中准备就绪,很快就会发布。可以看到相关工单here。同时,您可以通过Xcode
将您的资源文件上传至Resources
文件夹,如下图所示。
如何将 resource-file
添加到 Meteor Cordova iOS 应用程序?
我正在使用 CordovaCall plugin。
我在 cordova-build-override/
中添加了铃声文件,并使用 App.appendToConfig(element)
在 mobile-config.js
中声明了 resource-file
。
但是当meteor 运行 ios-device:
时报错=> Errors executing Cordova commands:
While adding platform iOS to Cordova project:
Error: Source path does not exist: all_that_she_wants_i.caf
(...)
看起来 Meteor 在将铃声文件复制到 cordova-build
目录之前读取 config.xml
。
在 Meteor 中有没有直接的方法可以做到这一点?
谢谢
您正在寻找的功能目前正在开发中,将在 Meteor v1.7
中准备就绪,很快就会发布。可以看到相关工单here。同时,您可以通过Xcode
将您的资源文件上传至Resources
文件夹,如下图所示。