[Help!] Restoring from Titanium Backup breaks some GCM push notifications - Android Q&A, Help & Troubleshooting

As the title states, I was wondering if anyone out there happens to know why restoring an app+data from Titanium Backup after a Factory Reset causes Push Messages (GCM I believe) to stop working. It seems fairly obvious that when restoring an app+app data from a previous installation, they get confused and the push messages aren't being delivered to the right place.
So far the only solution that I've found to the problem is to wipe the app's data, and restart from scratch.
I've done a lot of Google searching, and I have seen that there are a handful of other people who have had this same problem, but I have yet to see anyone come up with a working solution, though there have been a few things I've tried. This is my normal procedure I do when I upgrade/flash a new rom:
Code:
-Backup with Titanium Backup
-Backup with GO Backup
-Nandroid with TWRP
-Factory Reset
-Flash ROM
-Wipe Cache/Dalvik
-Boot
-Sign into Google Account
-Install Titanium Backup
-Restore previous Android ID
-Reboot
-Use Titanium Backup to restore Apps+AppData, as well as some system settings
-Reboot
At this point, some of my GCM push notifications don't work. The only way I can get them to work again is to wipe the app's data and start from scratch. I have tried the following things, none of which worked, but they might provide helpful information.
Code:
-Wiped the app data, restored the app data by itself again.
-Uninstalled the app, installed from Google Play, restored app data.
-Used Application Manager to disable notifications, then re-enabled.
-Went into the app's settings to disable notifications, then re-enabled.
-Cleared data on Google Services Framework
-Removed Google Account, cleared data on Google Services Framework, rebooted.
[B] (This actually had an even worse side effect of re-breaking GCM push
notifications for all of the apps I had fixed by hand)[/B]
At this point I'm at a loss, I'm not sure what else to try. It kind of looks like the Google Account/GSF is related to GCM. I don't remember exactly, but I think I tried restoring the previous GSF App+Data on my most recent flash, and it still didn't work.
Anyways, I'm kind of rambling, if anyone is able to provide any insight or help, it would be greatly appreciated!
----------------------------------------------------------
In case anyone is interested, here's some lists of the affected/unaffected apps.
It DOES affect the following:
Code:
Accuweather
American Express
Bejeweled
CBS Sports
Chase
Facebook
Messenger (FB)
Reddit News
Waze
XDA app
It does NOT affect the following:
Code:
Gmail
Google Now
Hangouts
PushBullet
Yahoo! Mail

try to restore only data on titanium backup, not restore app&data
Don't forget to hit THANKS button

I've tried that way, but it didn't work either

Bump for a new day D:

Would love help on this, I have the exact same problem...

I've had this problem for a long, long time (a year or two). If there's a solution, I haven't seen it yet.

Glad that I am not the only one.

Add me to the annoyance list.
I can't figure out how to get SSG2 to notify me, and that's not an app I want to clear data on as it will lose my level saves.
Voxer also has this problem.
Interestingly enough, the Risk style game LandRule has a way to refresh the Google sync services and it works perfectly.
Multiplayer->Notifications->Having trouble...->Refresh Registration.
Very handy tool to have available, need to find a way to spread to other apps!

Try removing and re-adding your Google account. After trying a few things, this either fixed it for me, or was just coincidental timing.
I do see that you tried this... but do it without clearing GSF data.

So glad I found this!
I had been researching why Voxer lost GCM notifications, with no luck and getting frustrated. Eventually stumbled across this thread and problem solved. Back story: two days ago I flashed a factory image and restored user apps & data from TiB. Never would have guessed that any thing to do with GCM "breaking". But sure enough after reading this, I cleared data in Voxer and all is well.
God bless XDA for all the little things like this. Couldn't own a phone without it.
We could really use some type of GCM interface to relink or whatever, if that's possible. Maybe even TiB would be a great vehicle for that?

OK I'm confused. So this problem is not solved?

Solved my particular problem with Voxer by clearing data. Problem with it breaking to begin with not solved.
Sent from my Moto X using Tapatalk.

So, interesting update for folks in this thread.
My push notifications in SSG have finally been fixed with the latest update.
Now I don't know if it's because something in the update fixed it or because the act of updating from the Playstore re-synced with you/Google.
Will be interesting to check next time I flash a ROM and start from scratch. Will certainly be keeping an older version of the apk to update from if needed

Had the same issue. Lost all push notifications from Whatsapp and other gcm-enabled apps after flashing to CM11 and restoring apps+data with Titanium Backup. Finally tried using the Push Notifications Fixer (root version) app and all of a sudden, my Whatsapp notifications are coming in fine. Not sure if the app really fixed the issue or if it was just a coincidence..
http://forum.xda-developers.com/showthread.php?t=2142503
[APP][2.2+][ROOT][FREE][12-SEP-2013] Push Notifications Fixer v4.1
Sent from my GT-I9100 using XDA Premium 4 mobile app

Anybody else having luck with that app?
Doesn't do anything for me, tried activating service, changing to 5min and resetting to default but doesn't fix push notifications from Voxer, SSG2 or LandRule...
Anything I'm doing wrong?

I'm using the latest version of TiB and my push notifications never work after a restore. Ive been manually reinstalling any apps that send me notifications after trying everything else others in here have tried. Basically TiB is only saving my WiFis for me these days. Subscribed for a fix!

Has anyone tried backing up and restoring app data with nandroid backups and apps that handle them, instead of TiBu? OBackup, ROM Manager are a couple of apps I believe do this.

What I did is backup app+data but reinstalled from PlayStore and opened up app to where it asked you to login and then goto TiB and restored Data and it worked for me!
I wish best to luck to everyone!

Also having the same issue but I've restored so many apps that I don't know which ones, other than the obvious messengers and the like, use GCM and might have it broken. I did at least figure out that deleting the app data (or uninstalling/reinstalling from the Play Store in my case) fixes the problem on an app by app basis.
A thought occurred to me but I haven't tried it myself... Has anyone tried restoring an app while using SuperSU? I seem to recall Titanium prompting that normal SU isn't very good and should be changed for optimal results but I've always ignored it. Maybe it's affecting that part of the restore.
---------- Post added at 02:00 PM ---------- Previous post was at 01:26 PM ----------
Tested my own theory with Voxer and it didn't help.

for me "Push Notifications Fixer" didn't resolve the problem with Whatsapp and UppTalk. To re-enable notifications and not lose data I do this:
1) delete AppData
2) open the App
3) login
4) restore AppData
like badboytw suggested above...

Related

[Q] Dependencies

Do we have a list of system app dependancies? I.e., Handcent requires Messaging.app etc. Just wondered for the purposes of clearing out system space.
I do not believe there is. What I do is: nandroid, uninstall what I don't want, reboot, wait for a crash. The only dependency issue I had was with the gtalk service, required by market, everything else seems to either tell you what it is or simply be unnecessary. You can also try freezing the service/app with Titanium Backup Pro or viciously kill with a task manager and watch for faults before unistalling. Whatever you do NANDROID first, it took me hours to find an install for gtalk (this was before gapps was a separate flash and downloadable everywhere).
Thank you! Titanium Backup works great for this!!! Handcent does good without the stock messaging, but will not get MMS without it. Got rid of quite a few garbage apps that were built in, so far, all is well.

[Q] Titanium Backup - Safe Restore Questions

I am an avid fan of Titanium backup since I'm a data-packrat. But, occasionally when upgrading ROM versions I have Force Close issues when I restore, and this I know can be caused by restoring things that 'shouldn't be' restored. I would like to know how to correctly restore with TiBu, what things can be restored, and what things I'm going to have to just face resetting up.
Below find a list of things that I really would prefer to be able to backup and not have to redo every time:
Contacts
Call Logs
SMS Log
Home Screens and widget/shortcuts
Wifi settings
Bluetooth pairings
Android OS configurations
User App backup and restore, I know, shouldn't be a problem at all.. It's the things integrated in to the ROM that are problematic. I would appreciate any guidance on how to go about figuring this out as I hate the FC issues that I occasionally run in to.
All those are system-related functions and should never be restored across different ROMs.
Use this.
SMS Backup & Restore
Call logs Backup & Restore
Sync contacts with Google.
For launcher you have to redo it to avoid problems unless you use a custom one like GoLauncher where you can backup.
As for - Wifi settings, Bluetooth pairings...I am not exactly sure.
Miami_Son said:
All those are system-related functions and should never be restored across different ROMs.
Click to expand...
Click to collapse
True, but there is other methods of backing them up safely.
Thank you for the responses so far. Just for reference I will not ever under any circumstances sync my contacts with my google accounts, that has, in the past, just lead to an INSANELY large contact list.
I have an application called: Super Backup: SMS & Contacts that can backup the Call log, Contacts, and SMS history and sucessfully restore them just fine. I just prefer an integrated solution and not having to backup a dozen different things with a dozen different apps.. that is what Titanium Backup is _FOR_ is it not?
I appreciate the thoughts so far and ask this, In TiBu various items in the app list have different colors. Green, white, red.. Are those indications of 'Safe to restore' vs 'Not safe to restore'. Or are they more 'integrated in to ROM' vs 'user app'?
I hear what you're all saying about 'only restore user apps across roms'.. But resetting wifi config, android config options, etcetcetc every time is frustrating at best.
You should try enabling the setting "I'll add contacts myself" in gmail. That solved my problems at least. After that, just cleaning up the existing contacts was all I needed to do.
LiLChris06 said:
True, but there is other methods of backing them up safely.
Click to expand...
Click to collapse
I know, but the question was specifically about TiBU.

[Q] Unable to give notifications on Facebook Alerts, Facebook Messenger

Here is the problem. I've been using custom ROMs since they became available on S3. Most of this ROMs recommend doing a WIPE prior to flashing via CWM for a clean install. It was ok but then I noticed that my Facebook App, Messenger and even inlcuding the built-in Email app doesn't give me any notfications whatsoever. But if check the said apps, new messages and alerts are there, the only difference is there are no LED Notifications and No Tones and No Alerts even at the Pull Down Notification Screen. I have checked the app's settings regarding sync and everything is ok. I tried both this methods, restoring apps from Titanium Backup and restoring the app's apk files which I managed to save thanks to Android Assistant. I even tried uninstalling those apps then downloading them again from PlayStore, only to encounter the said issues.
What can I do about this? Since then I was forced to just directly flash the ROMs without any Wipe.
System settings?
So does that mean you have checked the system settings as well?
Yes I did
Beastify said:
So does that mean you have checked the system settings as well?
Click to expand...
Click to collapse
Yes. I've checked everything. Quite strange actually
Yeah I came across this problem as well, but my email notifications and everything all show up except facebook. Whenever I get a notification for facebook, it is only through email and not through the actual app itself. It doesn't bother me that much but would be great if someone had an idea how to fix.
Any updates on this?
I have an original SGS, but always go through the same problem whenever I clean install a new ROM.
I've found out that if:
- I restore app+data from Titanium Backup -> No notifications
- I install app from Play Store, then restore data from TB -> No notifications
- Complete fresh install of app from Play Store -> Notifications work.
Such a pain having to follow this method, and makes me wonder if something is going wrong when TB is restoring.. food for thought anyways, hope this helps!
TheLach03 said:
Any updates on this?
I have an original SGS, but always go through the same problem whenever I clean install a new ROM.
I've found out that if:
- I restore app+data from Titanium Backup -> No notifications
- I install app from Play Store, then restore data from TB -> No notifications
- Complete fresh install of app from Play Store -> Notifications work.
Such a pain having to follow this method, and makes me wonder if something is going wrong when TB is restoring.. food for thought anyways, hope this helps!
Click to expand...
Click to collapse
Data from another rom can mess apps up, if you restore data via titanium its probably from a different rom so that could be messing things up. Or the data in titanium could be corrupt download all apps from play store, and delete the titanium the backup folder and re backup see if that fixes it.
Sent from my GT-I9300 using xda premium
delsus said:
Data from another rom can mess apps up, if you restore data via titanium its probably from a different rom so that could be messing things up. Or the data in titanium could be corrupt download all apps from play store, and delete the titanium the backup folder and re backup see if that fixes it.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
That certainly makes sense, cheers for the heads up!
Another question, something that probably won't work but makes me curious.
You know when you update nightlies, and it gives you that screen when you boot saying 'updating apps'? What is that process doing, and would that correct the data in any way?

[Q] Problem with app. Why did restoring backup work when nothing else did?

Hi,
I had a weird problem with an app (The Times and The Sunday Times) on my Xperia Z2 Tablet yesterday. Although I managed to fix it eventually, I was wondering if anyone might be able to shed some light on what happened.
The tablet had been repaired under warranty. Before I sent it off, I did a full Titanium backup, unrooted, and reset to factory defaults. As part of the repair, Sony updated the firmware from 17.1.1.A.0.402 to 17.1.2.A.0.314 (17.1.2.A.0.314 was released whilst it was out for repair). Both firmwares are based on Android 4.4.2.
I reinstalled all my user apps (not system apps) by restoring a Titanium backup, after which the The Times and The Sunday Times app was working. I used it several times, then yesterday it froze when loading. Killing the app from the recents and opening it again didn't work; this time it wouldn't load (the icon on the Nova Launcher desktop glowed for a few seconds, then nothing happened).
I then tried the following, killing the app from the recents menu before each attempt:
Clearing the app's cache.
Clearing the app's data.
Uninstalling the app and reinstalling.
Uninstalling the app, searching the entire device for the app name using solid explorer (rooted), removing any left over files, and reinstalling the app.
Uninstalling the app, running SD maid, and reinstalling the app.
Rebooting the device.
Still no luck. each time, the app icon would glow when i tapped it, the app would appear in my recent apps list as a black rectangle, but no matter how long I left it (several hours at one point), it just wouldn't load.
In desperation, I restored the app's Titanium backup with data, and it (sort of) worked. The app loaded, and allowed me to log in again (as if I'd just done a fresh install, or restored the app without data).
The weird thing is that the app has not been updated since I made the backup, so the backup version is the same as the version on the Play Store.
Does anyone know why restoring the Titanium backup would work where the troubleshooting steps I took above didn't? Is it possible that the app's data got given some weird permissions at some point that only Titanium, running as root, could sort out?
Thank you in advance!
Looking at the logcat might offer some insights into why it was not launching.
An educated guess would be that TiBu restored/overwrote a file that the other apps/system did not find and wipe and the app itself corrupts a file when launching and only restoring a working one from your backup fixed it.
If you find out what file that is, SD Maid could be updated to cover that and if it's reproduceable, you could also write the dev of the app instruction how to reproduce the issue so he can fix it.
Of course there is always the option that the server/connection was bad and it hang because of that.

Regular nightly reboots probably caused by backup of app-data to google drive

Hello,
I've a problem with my Samsung Galaxy S6 Edge.
OS is 6.0.1.
No root, no system changes.
From the beginning (even with Android 5) i had regular nightly reboots (not every day, but not seldom) AND only a few (around 6) app's data are backuped to google drive.
So I find it quit logical, that during the nightly backup an app crashes the backup process forcing the backup to end unexpectedly
and causing the unwanted reboot.
So, any ideas how to find the causing app?
Are there any log's available?
My favorite suspicious is LightFlow, but this is an unsubstantiated conjecture...
Thank you for answering...
Annoyingly without root is hard to grab logs, why not uninstall the potentially bad app and see if the phone behaves differently? Do it one app at a time and then you can determine which one is causing it.
Couldn't hurt to do a factory reset anyway.
Seems to be one of those: Android System, NFC or Google Play Store backup. As it happens with my wife's phone too.
Very strange. My phone only reboots at the deliberate interval I set in the settings.

Categories

Resources