cordova


Meteor Cordova: How to trick offline meteor cordova app to think it is logged in by using user document from localstorage


I have a meteor electron/cordova app that has user accounts.
I am familiar with this package meteor ground user. https://github.com/gwendall/meteor-ground-user
It seems to work for the cordova app, but fails with the electron build. With the electron build the app just gets stuck logging in. And Meteor.logginIn() is always true.
So I am hoping someone can advice me how to manually on startup, if Meteor.status().connected is false, check localstorage for last logged in user, and auto login the user in with that document and userId.
Summary:
Initial condition:
Uses User Accounts
User has previously used the app and logged in when connected
User is opening the app when offline
Meteor electron app https://github.com/wojtkowiak/meteor-desktop
Saves user document to localstorage https://github.com/gwendall/meteor-ground-user
Goal:
After opening the app offline, use the saved user document, and automatically make the client think the user is logged in with the offline user document.

Related Links

ionic 2 InAppBrowser url not opening
Cordova File Plugin: Prefill Library/Documents directory
Can I use cordova-plugin-video-editor to convert video to GIF
Ionic 2: Application running on the android device can't be debugged
Windows phone notification channel URL in cordova project
Ionic - “camera cancelled” when allowEdit is true
While making build in Cordova using cmd
Cordova App 'Android permission Cordova plugin' is not showing permission dialog
Cordova Social Sharing
Cordova/Ionic resources
How to push Ionic CalendarPlugin data to array
Unable to set ANDROID_HOME for Cordova
Why do i get error message “Error retrieving data. Bad Gateway” while running cordova weather app in visual studio?
VS2015 Build Not Executing node hooks and no errors
How to view console.log in intellij idea using phonegap
Making a persistent SSO with OAuth2 Client and ADFS 3.0

Categories

HOME
c++
hyper-v
centos
payment
luigi
g2o
maven-lifecycle
bootstrap-datepicker
dropzone.js
post
webserver
wlan
visual-foxpro
asp.net-web-api2
graphviz
quandl
c#-3.0
apigee
navbar
drupal-modules
atlassian-sourcetree
media
btrfs
apl
github-api
uppaal
graphic
jqassistant
modeling
jquery-chosen
android-ffmpeg
hp-quality-center
puma
opensaml
tornado-motor
nsdate
basic4android
responsive-filemanager
transitions
homescreen
configuration-files
ansible-vault
parasoft
auto-value
roc
simplemodal
winlims
ifttt
dwt
proof-of-correctness
monocle-scala
unicode-string
same-origin-policy
doubly-linked-list
nslog
mailman
eclipse-indigo
website-deployment
testdroid
unreal-blueprint
data-connections
mime-mail
jcarousel
angular-component-router
ios9.3
stunnel
command-line-tool
fody-propertychanged
utilities
jison
orchardcms-1.6
google-text-to-speech
grunt-contrib-cssmin
enplug-sdk
wpftoolkit
build-system
kiosk-mode
google-plugin-eclipse
httplib
linux-capabilities
unassigned-variable
ransac
pegjs
stacked-area-chart
out
numpad
pyro
svggraph
kendo-validator
delphiscript
graphml
angularjs-e2e
cvxopt
file-association
set-theory
jax-rpc
enctype
objectiveflickr
viewstack
mbprogresshud
dynamic-content
registrar
eda
tomahawk
multiple-versions
pvcs
astoria

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App