DrupalGap

DrupalGap + Windows Phone 8.1 (WP8.1) via Cordova / Phonegap

DrupalGap

WP8.1 plus DrupalGap seems to be a never ending story... after hours or even days I was not able to make it work because of problems with AJAX calls.
I've googled through hundreds of solutions but nothing worked so far.

So if you want to achieve the same, please help us to collect information here: https://github.com/signalpoint/DrupalGap/issues/291

Phonegap / Drupalgap / jQuery Mobile: Use "pageinit pageshow" events together to ensure functionality

Today I have an important note for you that cost me a lot of time and debugging my Drupalgap / Phonegap App using jQuery Mobile.

Handle file downloads (PDF, DOC, etc.) in PhoneGap HTML Code as system file download dialog (like in browser)

Quelle: http:/pixabay.com/de/monitor-pixabay-website-93962/ (CC0 Public Domain)

It cost me several minutes to find out how to create a file download link in PhoneGap that lets the user download the file like a normal browser (Phones download dialog).

What does not work?

Use a normal link - nothing happens!
Use the inAppBrowser - Files are not handled by it!

What works?

Use a javascript window.open event with "_system" as target.

Removing Menubutton in Phonegap 2.x application (Three dots button) in Android

Quelle: http:/pixabay.com/de/ipad-samsung-musik-spielen-google-605439/ (CC0 Public Domain)

Do you wonder where the thee dots menu button comes from in your PhoneGap Android application and how to disable it?

There is no option for that in PhoneGap 2.0 and it's quite tricky to find out.
I found the solution in this thread:
http://docs.phonegap.com/en/4.0.0/cordova_events_events.md.html#menubutton

Linktipp: GEO-Apps mit DrupalGap (PhoneGap+Drupal) und Drupal 7 schreiben

Drupal GEO-Apps mit DrupalGap

Mein heutiger Linktipp zeigt Euch, mit welchen Modulen und mittels DrupalGap Ihr eine mobile Geo App erstellt. Viel Spaß beim lesen!

DrupalGap: Use page parameters in hook_menu

Just a simple trick today: You asked yourself how you can use page parameters in DrupalGap menus for pages?

It's quite easy to pass a link argument, but not yet well documented. The solution can be found here:
https://www.drupal.org/node/2175361

In hook_menu just create a dynamic path like this with a % placeholder:

  1. function my_module_menu() {
  2.   var items = {