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?
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:
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
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.
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
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.
Best regards
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?
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
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'
Hi Samet,
you should review that all the dependencies are installed and you are using the correct version and Python 2.x (Python 3 is not well supported yet)
In any case, open an issue here https://github.com/airnotifier/airnotifier/issues if you don't find a solution
Juan
這一討論區的貼文已經被移除
Hi nish,
we'll be opening our Airnotifier instance only to branded apps using our service described here: https://moodle.com/mobileapp/
Regards, Juan
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