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

Prerequisites for Windows Phone 8.0/8.1
How to hide Onsen UI Tabbar whenever keyboard opens?
Error cordova build with org.chromium.bluetoothsocket plugin
Debug an app runnin of AVD
Phonegap FILE_URI, source of image
Generating PDF file with Ionic framework
“Not implemented” when calling showComposeNewEmailAsync
cordova plugin add error
phonegap webview can I access response
Displaying InAppBrowser with Ionic + Windows Phone 8.1
how to programmatically toggle back button on/off?
Cordova/Phonegap: WP8.1 Navbar overlapping
firebase angularfire auth process not working
confix.xml in crosswalk-cordova app ignored
How to set headers in Cordova InAppBrowser?
Visual Studio Cordova StatusBar Plugin

Categories

HOME
gnuplot
datatables
qt5
highcharts
powershell-v4.0
payment
environment-variables
netlogo
ignite
fiware
sharppcap
basecamp
freeswitch
slack
ibm-mobilefirst
speech-recognition
unity5
ais
wayland
openmeetings
vbulletin
salt-stack
category
jxmaps
riscv
licode
gulp-sass
image-comparison
intercept
probability-theory
gnome
google-cloud-vision
bus
angular-openlayers
bing-api
lwip
master-detail
wasapi
vim-syntax-highlighting
neoscms
lsmeans
netbanx-api
product-key
polymer-serve
swiftmailer
responsive-filemanager
powerdesigner
james
ats
devexpress-wpf
scalacheck
mapped-drive
ios6
falcor
slam
virsh
measurement-studio
wamp-protocol
django-compressor
bisonc++
same-origin-policy
nosuchelementexception
magicalrecord
use-case
canonical-link
rate
svg-edit
dbx
nested-function
deferred-loading
spoon
virtual-directory
openoffice-writer
nibble
ibm-jazz
zend-studio
shapely
stage3d
angularjs-ng-options
html5-template
drilldown
cakedc
allocation
rgs
enplug-sdk
jquery-dynatree
curator
xcode-instruments
form-helpers
kif-framework
objectarx
sandbox-solution
graphael
apiaxle
eclipse-wtp
uipicker
ereg
slimv
server-side-scripting
file-association
mysql-5.0
robohelp
emacs-dirtree
converters
google-ad-manager
mono-service
cohesion
winqual
zend-navigation
comdlg32
pointer-arithmetic
table-driven
astoria

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile