Local notifications, problems

Goodevening,

first of all my Corona simulator versions is 2015.2731 (2015.10.5)

on my app I’m using local notifications and it seems that if the waiting period is short all work fine otherwise if the time is much longer(for example 30 minutes) the local notifications not appears.

Can be the battery save system? 

What can i do?

Two

When I “tap” on the notification(when works) and the app resume, sometime the texture looks bad and glitch.

I’d like to refresh the video on system event “applicationResume” 

Is it possible ?

Thanks a lot.

Best regards

The current public build is 2906. You should consider updating to the latest daily build or at a minimum to 2906. But this won’t help with your issues.

What platform are you building with (Windows or macOS)?

What platform are you building to (Android,Desktop, iOS, etc?)

Are you encountering this issue in the simulator or on device?

Thanks

Rob

Thanks a lot

What platform are you building with (Windows or macOS)?

macOS

What platform are you building to (Android,Desktop, iOS, etc?)

Android

Are you encountering this issue in the simulator or on device?

Device

Any suggestion?

Android likes to dump texture memory when it suspends. In your resume code, you will need to call a function to rebuild the display.

As for the longer term events as far as I know they should be working.

Rob

Thanks for the replay.

I have to refresh the background image

How can i do?

I have added my background with this code:

local sceneGroup = self.view

local background = display.newImageRect( “images/backgroundbase1.jpg”, display.contentWidth, display.contentHeight )

    background.anchorX = 0

    background.anchorY = 0

    background.x, background.y = 0, 0

sceneGroup:insert(background)

How can I refresh only the background image? or replace only background image? 

In your “applicationResume” test in your system event listener you could simply call composer.removeScene(“scenetoresume”) followed by a composer.gotoScene(“scenetoresume”)

The current public build is 2906. You should consider updating to the latest daily build or at a minimum to 2906. But this won’t help with your issues.

What platform are you building with (Windows or macOS)?

What platform are you building to (Android,Desktop, iOS, etc?)

Are you encountering this issue in the simulator or on device?

Thanks

Rob

Thanks a lot

What platform are you building with (Windows or macOS)?

macOS

What platform are you building to (Android,Desktop, iOS, etc?)

Android

Are you encountering this issue in the simulator or on device?

Device

Any suggestion?

Android likes to dump texture memory when it suspends. In your resume code, you will need to call a function to rebuild the display.

As for the longer term events as far as I know they should be working.

Rob

Thanks for the replay.

I have to refresh the background image

How can i do?

I have added my background with this code:

local sceneGroup = self.view

local background = display.newImageRect( “images/backgroundbase1.jpg”, display.contentWidth, display.contentHeight )

    background.anchorX = 0

    background.anchorY = 0

    background.x, background.y = 0, 0

sceneGroup:insert(background)

How can I refresh only the background image? or replace only background image? 

In your “applicationResume” test in your system event listener you could simply call composer.removeScene(“scenetoresume”) followed by a composer.gotoScene(“scenetoresume”)