SparklingAir's Forum Posts

  • Good question.

    I see that other applications containing audio behave exactly the same.

    But I need the user to be able to turn off my audio so that he can continue to play and listen his music.

    Is it possible?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello!

    When my application starts, the sounds of other phone applications disappear. At the same time my application continues to sound.

    Cocoon Canvas+ build for Android

    Any ideas?

  • Hey

    Faced with the fact that in the ios 11 in my app is not set the trigger "On video complited".

    I did a simple test, and it showed that after the normal end of viewing the rewarded video, the "On video complited" is set for a fraction of a second and then the "On video dismissed" is set. So it should be?

    capx:

    https://cloud.mail.ru/public/DPzu/39msye9LD

  • Nope, consumable products are consumed after the purchase and so there is nothing to restore. That's the nature of consumables.

    With your plugin, the minimum setup becomes very simple

  • >

    >

    > So it is enough to have one trigger "On purchase succeeded" both for checking the purchase itself and for restoring purchases?

    >

    Yes exactly. Basically, if products data is restored, the plugin won't allow a user to spend cash for the same (non-consumable) product twice and instead triggers the "On purchase succeeded" condition immediately.

    This does not apply to consumable purchases?

  • I do not want to update the stable 244 to beta 247, so I can not open your capx. That is the question: what is the analogue of "Has product" in your plug-in? How can I verify that the user made a purchase of a specific product after restoration or initialization?

    upd

    Once the "Restore Purchases" successfully completes, then any attempt to purchase the item that user already have purchased in the past, immediately results in triggering "On purchase succeeded" without popping up any payment popup.

    So in other words, the store detects that the purchase has been completed in the past and automatically triggers the "On purchase succeeded" event.

    So it is enough to have one trigger "On purchase succeeded" both for checking the purchase itself and for restoring purchases?

  • > Hello!

    >

    > It does not contain "Android application license key" like Cranberry CordovaIAP. It confuse me.

    >

    It doesn't need the key, it detects and works automatically .

    Ok, thank you!

  • Hello!

    It does not contain "Android application license key" like Cranberry CordovaIAP. It confuse me.

  • >

    > >

    > > Can you please just try to silent the sounds like 2 seconds before showing the ad? This way we will know if it's the Audio issue or not.

    > >

    >

    > I turned off the ad showing, and tested with different environments. In general, the C2 Audio plug-in does not work correctly with Canvas+.

    > PhoneGap Build with Webview and Cocoon with Webview+ all ok.

    > Also only with Canvas+ starting buying with Cranberry IAP plugin crashes app.

    >

    > Version of Canvas+ "last".

    >

    Alright, thanks for tests so it's C2 Audio plugin & Cocoon Canvas+ compatibility issue then. If it works well with PhoneGap WebView then it will work well with Cocoon WebView and WebView+ as well most probably.

    As I mentioned earlier, I do not code anything audio related in Ultimate Ads plugin so I can't help with this as it's not Ultimate Ads issue. Cocoon is also officially not supported by Scirra so they will not investigate the issue. All you can do is to submit the error report to Ludei Cocoon forum but they are also pretty much unavailable recently due to work on new Canvas+ engine :/. Guess it just needs time.

    Let me know if I can help with anything else related to my plugin, cheers!

    Yes, I will try to get something from their support. Without their acceleration, I do not have any options, since the PGB with ?rosswalk and IntelXDK do not work. Thank you!

  • Can you please just try to silent the sounds like 2 seconds before showing the ad? This way we will know if it's the Audio issue or not.

    I turned off the ad showing, and tested with different environments. In general, the C2 Audio plug-in does not work correctly with Canvas+.

    PhoneGap Build with Webview and Cocoon with Webview+ all ok.

    Also only with Canvas+ starting buying with Cranberry IAP plugin crashes app.

    Version of Canvas+ "last".

  • Saying "automatically", I meant that with the same settings of my project, in iOS the sound turns off automatically.

    Details.

    For android i make Cocoon build. With and without minifing. My music file located in "Music" folder.

    "Audio" plugin silents music in pc browser tests. I made music silent before starting ads, but my last trick below.

    At the right moment (on start of layout for ex.) i set variable "show_ad" to 1.

    Further, i have three events:

    1) "if show_ad=1 and invert(Audio is silent) then Audio set silent"

    2) "if show_ad=1 and Audio is silent then run ads"

    3) "On video complete" -> "set show_ad to 0"

    But this have no effect.

  • Small topic bump. I've just released my game on Google Play and depending on device, problem is still there. In specific cases even music goes away after fullscreen Admob presentation... Right now I have no idea whats going on.

    Hello! qam did you solve your problem?

  • > Can't turn off audio on android.

    > I do "Audio -> Set silent" or "Audio -> Set volume" to music just before the ad is shown.

    > Music continues to play along with advertising.

    >

    Hmm, you may try to put "wait(0.05)" between setting the silence and triggering the ad to give the engine some time to process the silent request. That should do the trick.

    I made many experiments but without success. Why does not this happen automatically as in iOS?

  • does this work with c3 and phonegap? i did a regular cordova export for android but the config.xml does not contain any plugins for admob, is there a work around to manually add the plugin if its not being exported by c3?

    May be same plugin as for C2 ?

  • Can't turn off audio on android.

    I do "Audio -> Set silent" or "Audio -> Set volume" to music just before the ad is shown.

    Music continues to play along with advertising.