About Airnotifier App Name

About Airnotifier App Name

Rodrigo Rodriguez發表於
Number of replies: 18

Hi, I'm customizing the Moodle Mobile App version 1.11 for my school, I already made visual changes, I build the app using PhoneGap, I tested both iOS and Android versions and everything looks OK... the thing is that I can't recieve push notifications in iOS. I followed the tutorial (www.slideshare.net/juanleyva/creating-a-custom-moodle-mobile-app-moodle-moot-spain-2014) and it says the I should change the APP ID and put a customized one (which I already did) but when I do it I can't recieved Push Notifications anymore. It seems that if the APP ID inside the config files (*.json and .config.xml) are different than the one inside my Moodle Mobile Notification webpage it fails. It wouldn't be a problem for me to use the default one (APP ID: com.moodle.moodlemobile and the AIRNOTIFIER APP NAME: commoodlemoodlemobile) but the thing is that I have to make an APP ID inside Apple Developer and (of course) "com.moodle.moodlemobile" already exists. Is there a way to request an Airnotifier App Name inside the Airnotifier public server or what can I do to make it work?

評比平均分數: -
In reply to Rodrigo Rodriguez

Re: About Airnotifier App Name

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hello Rodrigo,

if you want iOs notifications to work, you will have to install your own Airnotifier instance with your custom iOs certificates for Push notifications.

It is explained here:

https://docs.moodle.org/28/en/Mobile_app_notifications#Installing_your_own_notifications_infrastructure

I know it a lot of extra work, but it's an iOs limitation.

In any case I'm going to ask if we can add support for custom versions of the app in our Airnotifier instance (since Airnotifier supports multiple apps), I'll keep you informed.

Cheers, Juan

In reply to Juan Leyva

Re: About Airnotifier App Name

Rodrigo Rodriguez發表於

Thanks a lot Juan

Yesterday I began with the installation of the Airnotifier instance in my own server but I'm having problems because I'm not sure how to know if the application started correctly or not... I also had problems during the installation but I guess that they have been solved.

Once I execute this instruction in terminal:

sudo python airnotifier.py >> airnotifier.log 2>> airnotifier.err

I go to my browser and I put the address (making the obvious substitution):

http://your_server_ip_address:8801 

And nothing happens... I'm pretty sure that I'm missing a minimal detail in the whole procedure but I can't find it.

On the other hand, I know a lot of people that would be glad if the Airnotifier instance that you have could support custom versions, at least I'm one of them. 微笑

In reply to Juan Leyva

Re: About Airnotifier App Name

Rodrigo Rodriguez發表於
This is what my airnotifier.err log file says:

Traceback (most recent call last):
  File "airnotifier.py", line 253, in <module>
    AirNotifierApp(services=services).main()
  File "airnotifier.py", line 150, in __init__
    apihandlers = self.init_routes('api')
  File "airnotifier.py", line 69, in init_routes
    return RouteLoader.load(dir)
  File "/root/airnotifier2/routes.py", line 58, in load
    return loader.init_routes(package_name, include_routes_file)
  File "/root/airnotifier2/routes.py", line 69, in init_routes
    module = __import__(modname)
  File "/root/airnotifier2/api/accesskeys.py", line 30, in <module>
    from importlib import import_module
ImportError: No module named importlib
In reply to Rodrigo Rodriguez

Re: About Airnotifier App Name

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Python error, seems you miss some libraries, try:

sudo pip install importlib

In reply to Juan Leyva

Re: About Airnotifier App Name

Rodrigo Rodriguez發表於

Hi Juan

I did what you suggested me, everything went OK... just a couple of issues with the Apple certificates and keys and a confusion regarding the apps names... but it has been solved. I have a question... when I receive a notification (both iOS and Android) the notification message appears but there's no sound, it there's something that I missed? Did I did something wrong? Did I install a different airnotifier repository branch?

Thanks a lot for your help.

P.S. I was wondering... do you speak Spanish? 微笑 because, your name is Juan and I'm Rodrigo, maybe we should write in Spanish or (if you prefer) we can continue in English so other users can find useful this info.

In reply to Rodrigo Rodriguez

Re: About Airnotifier App Name

Dave Perry發表於

Occasionally he breaks in to Spanish on here, but that's really not useful for most of us using this forum. Unless everyone else has a hidden ability in Spanish that I don't know about.

In reply to Dave Perry

Re: About Airnotifier App Name

Rodrigo Rodriguez發表於
Hahaha I don't think so David, even there's people that says that they speak in Spanish but all that they know about the language are curse words. We can continue in English, no problem... I'll try to do my best to explain myself. I have plenty of doubts about the Airnotifier implementation that I'm sure other users have so let's make it useful.
Best regards 微笑
In reply to Rodrigo Rodriguez

Re: About Airnotifier App Name

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hello Rodrigo,

yes, better in English, your English is excellent by the way.

Regarding the notification sounds, have you tried with different devices? In Android and iOs I receive sounds.

Cheers, Juan

In reply to Juan Leyva

Re: About Airnotifier App Name

Rodrigo Rodriguez發表於

Yes Juan... I try both Android and iOS devices I'm pretty sure I deleted something in the whole customize process... I guess it would be better to start from scratch again, which branch do you recommend me to fork?

Should I wait for the next Moodle Mobile version?

The APN service from my Airnotifier only lasts 30 minutes then go offline, is this because I'm using a developer certificate or could it be that I upload an incorrect version of Airnotifier?


In reply to Rodrigo Rodriguez

Re: About Airnotifier App Name

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hi Rodrigo,

we' re releasing a new version during this week, so maybe you should wait

In any case, allways use release code:

https://github.com/moodlehq/moodlemobile/releases

Cheers, Juan

In reply to Juan Leyva

Re: About Airnotifier App Name

Rodrigo Rodriguez發表於

Thanks a lot Juan

You have been very helpful... as you can see I'm a very "ask this, ask that" kind of guy but the good thing is that I've learned a lot from this.

See ya 微笑

In reply to Juan Leyva

Re: About Airnotifier App Name

Samet Kul發表於
Testers的相片

This is the error message I am having with airnotifier. Any help is appreciated.


Traceback (most recent call last):
  File "airnotifier.py", line 285, in <module>
    AirNotifierApp(services=services).main()
  File "airnotifier.py", line 193, in main
    ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
AttributeError: 'module' object has no attribute 'create_default_context'

In reply to Juan Leyva

這一討論區的貼文已經被移除

這一討論區的貼文已經被移除且無法再被存取
In reply to Deleted user

Re: About Airnotifier App Name

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hi Gianvito,

not yet, we'll inform you

Juan

In reply to Juan Leyva

Re: About Airnotifier App Name

nish dahan發表於

Hi Juan,

I know this thread is from last year, but just wondering any updates on this, on supporting notifications (ios) for custom apps, as you had mentioned here. If not, is it still in the pipeline, i.e., roughly when?

Thanks

Nish

In reply to nish dahan

Re: About Airnotifier App Name

Juan Leyva發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hi nish,

we'll be opening our Airnotifier instance only to branded apps using our service described here: https://moodle.com/mobileapp/

Regards, Juan

In reply to Juan Leyva

Re: About Airnotifier App Name

nish dahan發表於

Hi Juan,

Thanks for your response. I noticed that Moodle HQ has just started promoting the branded app program further.

Although we have already spent some time to create a custom app with own airnotifier, moving forward, we may opt for this option and would like to have some further information if you can kindly help on the below:

-        Does HQ also provide with other customizations on the branded app, i.e., changing/adding menu items and style sheets? If no, does it have to be done via the Moodle partner? And if so would HQ still maintain the code including the custom code? Also, what would be the scenario for maintenance etc., in case, if we, at our end, have our own custom code that we would like to go through the branded app option?

-        The Branded app product description says Moodle HQ will charge $10k initially and $5k afterwards annually for the service. Does that mean the Moodle partner’s cost comes free or we need to get a separate quote from them for that?

-        With what I have read, Apple emphasises to go for the Apple Developer Enterprise Program ‘to create proprietary apps designed and distributed exclusively to your organisation's employees’? In case, if there is a legal requirement on this from Apple, could we assume, that this is all covered through the Moodle HQ /Apple contract, as ours is an app to be used exclusively by the organisation’s community, i.e., staff, students, parents; (can be downloadable for anyone but access restricted via authentication).

Thanks again and hope to hear from you soon.

Nish