mpurbo / MMPReactiveNotification

Local and remote push notifications as reactive signals with ReactiveCocoa
MIT License
18 stars 1 forks source link

Question: Can you clarify one thing about localNotificationsOnLaunch. #3

Closed robertodias180 closed 4 years ago

robertodias180 commented 9 years ago

I am trying to see if the user open the app from notification. But none of the alert will appear on screen. Can you tell me what am i doing wrong?

[[[MMPReactiveNotification service] localNotificationsOnLaunch] subscribeNext:^(id x) {
        [[[UIAlertView alloc] initWithTitle:@"" message:@"1" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show];
    } error:^(NSError *error) {
         [[[UIAlertView alloc] initWithTitle:@"" message:@"2" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show];
    } completed:^{
         [[[UIAlertView alloc] initWithTitle:@"" message:@"3" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show];
    }];
mpurbo commented 9 years ago

Yeah, there definitely is a problem in localNotificationsOnLaunch. It doesn't seem to work. I'll try to fix it later.