objective c - Local Notification ios 6.0 and newer -


i'm making alarm ios. wanted use local notification schedule , pass alarm sound.

the current code like:

uilocalnotification *localnotification = [[uilocalnotification alloc] init]; / [localnotification setfiredate:firedate]; [localnotification setalertaction:@"view"];  [localnotification setalertbody:[alertbodyfield text]];  [localnotification sethasaction: yes];  [localnotification setsoundname:@"sound.wav"]; [localnotification setapplicationiconbadgenumber:[[uiapplication sharedapplication] applicationiconbadgenumber]+1];  [[uiapplication sharedapplication] schedulelocalnotification:localnotification];  

in ios 5.0 works well, want window appears in middle of screen buttons , remains there until there user interaction

in ios 6.0 notification went top of screen , not allow existence of buttons. know change?

this not possible via code. user can change way notification presented him/her.

the default @ top of screen banner, alert style in available if user choices use it.

notification settings facebook app


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -