signalpoint / DrupalGap

An application development kit for Drupal websites.
https://www.drupalgap.org
GNU General Public License v2.0
234 stars 186 forks source link

Incompatibility with Simple Mobile Redirect module #564

Open coolman7 opened 9 years ago

coolman7 commented 9 years ago

I discovered a problem with Simple Mobile Redirect module:

https://www.drupal.org/project/simple_mobile_redirect

If Simple Mobile Redirect is enabled on drupal and set Redirect Android parameter of module something like domain.com/mobile-detected, mobile application on android device loops forever or at least for 5-10 minutes at the loading screen. If I wait a few minutes and kill the application and restart again, application starts normally.

If I disable this module, application starts normally.

I believe Simple Mobile Redirect module loops some page that drupalgap wants to load from drupal website.

signalpoint commented 9 years ago

Ideally the Simple Mobile Redirect module would provide configuration options to ignore certain paths:

?q=[rest]/*
?q=services/session/token

If that feature isn't available, I'd suggest opening an issue with that module's maintainer, and/or patching/contributing to their module.

coolman7 commented 9 years ago

Thanks for paths. I'll open a case for that project.

coolman7 commented 9 years ago

https://www.drupal.org/node/2499621

I hope they'll answer, but last update was 3 years ago for this module. I'm not sure, if the maintainer will make an update to the module again.

Is there any other way or module to redirect mobile users to some certain page for the first visit?

Ideally drupalgap and Simple Mobile Redirect would be perfect companion together. We can redirect mobile users to mobile application for their first visit. But this issue makes it impossible to use it with drupalgap.