metrue / Applize

Bundle your website into iOS native app with one line code.
26 stars 6 forks source link

Push Notification #1

Closed kripsbro closed 8 years ago

kripsbro commented 8 years ago

Notifications.js won't work :( can you fix them ?

metrue commented 8 years ago

@kripsbro

Yeah, I will. but if you give me more details about this issue will help a lot.

kripsbro commented 8 years ago

So i try to open https://web.skype.com and set UserAgent to UIWebView 'NSString* userAgent = @"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4";' when i receive Notifications in Skype i don't see them as alert :(

metrue commented 8 years ago

@kripsbro

I will take a look at it this weekend.

kripsbro commented 8 years ago

Thanks, can you send a dome of pushnotification and website witch work ?

metrue commented 8 years ago

@kripsbro

What I want to clarify is that this notification is not this iOS notifications.

What I do here is binding web browser's web notification Notification to iOS alert.

So basically you will see, your website pops a alert means there is a notification even happens on your web website.

kripsbro commented 8 years ago

Yes, i know, so web.skype.com sends WebNotifications, but it wont receive it :(

On Thu, Mar 17, 2016 at 3:57 PM, Minghe notifications@github.com wrote:

@kripsbro https://github.com/kripsbro

What I want to clarify is that this notification is not this iOS notifications https://developer.apple.com/notifications/.

What I do here is binding web browser's web notification Notification https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API to iOS alert https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/UIKitUICatalog/UIAlertView.html.

So basically you will see, your website pops a alert means there is a notification even happens on your web website.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/metrue/Applize/issues/1#issuecomment-197889450

metrue commented 8 years ago

@kripsbro

Oh, I see, Let debug a little bit this weekend.

kripsbro commented 8 years ago

ok, thanks

On Thu, Mar 17, 2016 at 4:08 PM, Minghe notifications@github.com wrote:

Reopened #1 https://github.com/metrue/Applize/issues/1.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/metrue/Applize/issues/1#event-593456366

kripsbro commented 8 years ago

did you checked ?

kripsbro commented 8 years ago

Hello

metrue commented 8 years ago

@kripsbro

Sorry for later response, I did checked it.

the root cause is iOS safari does not support 'Notification' currently, you can refer to this doc. [https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/Introduction/Introduction.html](https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/Introduction/Introduction.html]

I'a still working on it how to inject 'Notification' support it now, but not have a clear thought yet.

kripsbro commented 8 years ago

ok thanks

metrue commented 8 years ago

@kripsbro

Notification issue should be fixed now, you can check.

And I already add a testing local testing website under Applize.Web, You can follow the README to do the testing.

if everything goes well, please help close this issue, Thanks for your feedback always.

kripsbro commented 8 years ago

Hi did you tried web.skype.com to test notifications ?

kripsbro commented 8 years ago

it don't works ;(