Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

StoreKit not working on tvOS
Started by mfr Dec 16 2016 07:10 AM

82 replies to this topic
[TOPIC CONTROLS]
« Page 4 of 4 2 3 4
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#76

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,785 posts
  • Enterprise

I will try the app link you sent when I get home see if I can find anything in the logs.

[TOPIC: post.html]
#77

mfr

[GLOBAL: userInfoPane.html]
mfr
  • Enthusiast

  • 56 posts
  • Corona SDK

Good question. When you do a purcahse it "fails" after the last alert from Appstore. I don't think I have tried to cancel a real purchase as I have been focus on doing a purchase. :)

 

On Testflight cancel work. When appstore ask if you want buy and you say no, it cancel the purchase.



[TOPIC: post.html]
#78

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,785 posts
  • Enterprise

I tried the link you send me but it does not seems to show up, can you give me the logs. I am still having to guess but am pushing out an update the should make sure are always in production mode. 



[TOPIC: post.html]
#79

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,785 posts
  • Enterprise

If you can receive a cancel event that would be very helpful information, but still please just email me your logs of your app



[TOPIC: post.html]
#80

mfr

[GLOBAL: userInfoPane.html]
mfr
  • Enthusiast

  • 56 posts
  • Corona SDK

Hi Scott, I'm trying this plugin in again with a new App and it seems to work but there is still something going on with the audio. I'm starting one video file and one audio file. Evrytime I make a purchase the audiofile is muted and I need to restart the app. Can't reset the volume. If I include the audio in the videofile it works but then it doesn't loop as a smooth as before. If I restart the app everything works as it should. Any idea?

 

Last time I rebuilt the app in Swift but I prefer to use Corona and your plugin if it works.



[TOPIC: post.html]
#81

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,785 posts
  • Enterprise

Hi Scott, I'm trying this plugin in again with a new App and it seems to work but there is still something going on with the audio. I'm starting one video file and one audio file. Evrytime I make a purchase the audiofile is muted and I need to restart the app. Can't reset the volume. If I include the audio in the videofile it works but then it doesn't loop as a smooth as before. If I restart the app everything works as it should. Any idea?

 

Last time I rebuilt the app in Swift but I prefer to use Corona and your plugin if it works.

Can I please get a sample app? I cannot guess if I don't have a sample app. I need a clear example of the problem. Please don't post the main.lua in code brackets. I need to be able to download the sample, build the app, and see the problem. I don't need steps, I need a sample app to see the problem with my own eyes and so I can build against it.



[TOPIC: post.html]
#82

mfr

[GLOBAL: userInfoPane.html]
mfr
  • Enthusiast

  • 56 posts
  • Corona SDK

Ok. I'll send you a copy of the entire.



[TOPIC: post.html]
#83

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,785 posts
  • Enterprise

Ok. I'll send you a copy of the entire.

 

Hey just wanted to give an update on this. I have tried everything I can think of to get this working. I cannot seem to get this working. I tried making sure AVAudioSession is on and on the right mode and the AVAudioSession audio session has volume. I am not really an audio wiz but I that is all I could think off. I think this is either an apple bug or corona bug. The none of my code has anything to due with audio, all it does is control the store framework provided by apple. I have tried implementing work arounds but nothing seems to do it. I will say during my investigation I notice the application state change from "applicationSuspend" to "applicationResume" to "applicationSuspend" to "applicationResume" during a purchase. i don't know how Corona's audio engine setup works but imagine Corona must be doing something to there audio engine on the suspend and resume phases. 

 

I do have a couple ideas for work arounds until this get fixed by me, Corona, or Apple. 

 

1. during my investigation I did notice audio seems to work if you have never bought the item before on a particular apple account. But if you are rebuying the audio stops. You could try using the iCloud plugin to save purchases history in iCloud to allow users not have rebuy and the audio should work normally. There is a small chance a user may not have iCloud enabled but I think is that like 1% of people. I mean if you have an apple tv you probably have a lot of apple stuff. If you have a lot apple stuff you most likely have iCloud enabled.

 

2. You could show people an alert after they buy something to reset the app. Probably not the best idea but better than not saying anything

 

I personally would recommend number 1. But I really really hate workarounds. I want a solution as much as you do. If I think of something or anyone has any ideas please let me know. 




[topic_controls]
« Page 4 of 4 2 3 4
 
[/topic_controls]