Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Alternatives to solve things not supported by Corona
Started by jdsmedeirosbr Jun 07 2018 11:28 AM

4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

jdsmedeirosbr

[GLOBAL: userInfoPane.html]
jdsmedeirosbr
  • Enthusiast

  • 40 posts
  • Corona SDK

Hello, I have two projects to create in ios and android, but the two will have problems using Corona, one is to access an html at a certain time in the day and send a local notification (in this case it would be a background event that Corona does not support ), and the other is a youtube video inserted in a frame and that would have rotated 90 degrees when placing the mobile in landscape (in this case in Android the webview does not rotate).
 
I do not want to use native for this, would I have some other way to create these projects solving these problems?


[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 757 posts
  • Corona SDK

I don't know enough about the second problem to address it. 

 

For the first problem:  I would use a backend service. The users would register what they want to be notified about to the service. And the service would run a job hourly or every minute and then send a notification when whatever this event happens that requires a notification.

 

Since I am most familiar with Gamesparks that is what I would use, but I suspect that you can use Delephant's backend services also.

 

As an added benefit you can save the notification for viewing at some other time, you don't have to worry about the backend service dying on the phone or the phone being rebooted and the service not restarted.



[TOPIC: post.html]
#3

jdsmedeirosbr

[GLOBAL: userInfoPane.html]
jdsmedeirosbr
  • Enthusiast

  • 40 posts
  • Corona SDK

I don't know enough about the second problem to address it. 

 

For the first problem:  I would use a backend service. The users would register what they want to be notified about to the service. And the service would run a job hourly or every minute and then send a notification when whatever this event happens that requires a notification.

 

Since I am most familiar with Gamesparks that is what I would use, but I suspect that you can use Delephant's backend services also.

 

As an added benefit you can save the notification for viewing at some other time, you don't have to worry about the backend service dying on the phone or the phone being rebooted and the service not restarted.

 

In case I want to access the java.com website, I get the current java jre version and show it in my app, however I wanted it if in case the java version is changed on the site, I automatically receive the notification on the mobile phone in case it stays the red flag of notification in my app made in Corona, so my question is how does the app closed and without background support will receive this notification?



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,527 posts
  • Corona Staff

You would use a push notification instead of a local notification.

 

Rob


  • dodi_games likes this

[TOPIC: post.html]
#5

jdsmedeirosbr

[GLOBAL: userInfoPane.html]
jdsmedeirosbr
  • Enthusiast

  • 40 posts
  • Corona SDK

You would use a push notification instead of a local notification.

 

Rob

Now I understand, thank you very much, I will give a study on this. ;)




[topic_controls]
[/topic_controls]