机器人,团结,onesignal - 在哪里放置声音文件? [英] android, unity, onesignal -- where to place the sound file?

查看:255
本文介绍了机器人,团结,onesignal - 在哪里放置声音文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说我是新来的Andr​​oid开发将是轻描淡写。我试图找出其中放置一个声音文件在我的统一目录,这样onesignal,第三方通知服务器,可以访问它为这个特定的API方法:

Saying that I'm new to android development would be an understatement. I'm trying to figure out where to place a sound file in my unity directory such that onesignal, a third party notification server, can access it for this a particular api method:

android_sound:StringOptional
包含在你的应用程序播放声音文件,而不是默认设备通知声音。
注:保留了文件的扩展名为Android。
例如:通知

android_sound: StringOptional Sound file that is included in your app to play instead of the default device notification sound. NOTE: Leave off file extension for Android. Example: "notification"

参考: http://documentation.onesignal.com/docs/notifications-create-通知

我得到一个编译错误,当我把它放在RES /生,和其他地方在谷歌Play服务库的

I get a build error when I place it in res/raw, and anywhere else in the google play services library

哪里去了?

推荐答案

您将需要把我们的 OneSignalNotificationRes 文件夹href=\"https://github.com/one-signal/OneSignal-Unity-SDK/tree/master/UnityOneSignalExample/Assets/Plugins/Android/OneSignalNotificationRes\"相对=nofollow>团结示例项目的进入你的资产/插件/ Android版/ 文件夹中。换成你自己的例子图标和声音文件。

You will need to place the OneSignalNotificationRes folder from our Unity Example Project into your Assets/Plugins/Android/ folder. Replace the example icons and sound files with your own.

3的底部的更多细节。在我们的团结安装指南的Andr​​oid 部分。

感谢。

这篇关于机器人,团结,onesignal - 在哪里放置声音文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆