Related
hey guys,
I've been having a problem with my gmail calendar not syncing, which is very important to me. Not sure if anyone else has this issue. It worked for about 2 weeks then stopped. I still got email, but not sure if my contacts were syncing. I tried the manual sync in Accounts and it said it was synced, but it wasn't. No phone to gmail or gmail to phone on the calendar. I set up a multiple day event (every thursday) and that was when it stopped working.
Anyway, here's how I got it working again. I went into Settings/Applications/Manage Applications, then the ALL tab. First I opened the Calendar Sync Adapter and Clear Data. (That didn't fix it, but I'm not sure if it fixed something else, but this is all the steps I took.) Next was Calendar and Clear Data. (Still no fix). Lastly was Calendar Storage and Clear Data. I'm not sure if the last one was the important one or it was a combination of all three, but that seemed to fix it. I had to re-enter all the events that were originally inputted through my phone so you might want to write those down, but now my phone goes both ways... with gmail... haha. Hope this saves someone some time.
Oh, and I'm stock 2.2.2 not rooted.
What bloat ware have u frozen/uninstalled also you could try force stopping you calender and clearing data and reboot idk if it will do ne thing but its worth a shot
I'm unrooted stock. I haven't frozen or uninstalled any bloatware. I cleared the data and that seemed to do the trick for a day. Now I'm starting to have the same problem again. I haven't rebooted since so I guess I'll try that.
Hello
The stock gmail app does not sync. It does not even push. Have to manual refresh to receive mails. Wots the problem?
Sent from my GT-I9100 using XDA App
Settings/Accounts and sync/click on gmail account check that Gmail is ticked.
You prolly have the phone go into power saving mode when the battery drops to 50%.
When it goes into power saving mode, autosync turns off.
If u want autosync most of the time, then change power saving mode to 10%.
Even more funny with mine:
since yesterday 6.30 pm stock email app won´t do anything anymore, not even manual sync. Sync circle stays forever. Worked some minutes before faultless.
Tried to register server newly with my gmail address but green bar stayed forever ........
Clicked "cancel", went back to mail app and mail app told me: "account or password wrong"
It´s now completely dead. Tried to switch off, batt off, clear cache but it is dead .................... Google Gmail app works flawless as well as calendar, docs and all othet google account related apps.
Only thing I dedected: when I look into system - running apps - under Samsung mail app it says "Reboot" ???? (in German NEUstart) ...................
Wonder if anyone has an idea how to solve THIS ?
Am I stupid or what ?
I don´t find the register in the menu where I can SELECTIVELY and ONLY delete the account for the samsung stock email app .......................
Am I blind ?
Just for Info (I´m SOOO stupid)
Open stock mail app, long press on Gmail left upper box, choose "delete".
Then register same account again, voila, it works again ..........
(Found it in a German forum .......................... )
I have probably the same problem, although it could be something different. Teh gmail sync can be turned on under Accounts&Sync menu, but it turns off every time I reboot / turn-off the phone. I am using CM7, but I am not sure if this problem is CM7 related... I have reflashed GAPPS but it didn't help.
am facing the same problem not only my gmail does not sync properly, my whatsapp msgs are coming in really slow. am gonna try to delete the account and sign in again. see if it helps.
In my case deleting account didn't help. It still happens for some reason that the Gmail sync doesn't work and when I go to Accounts & Sync preferences I just see that the Gmail sync dialog box is unchecked. So, then I just check the box and it starts working until it, due to mysterious reasons, stop syncing and I need to repeat the process to start the sync again.
Do you have the battery saving feature enabled and if so check the settings.
Because one of the settings (I don't know which because I disabled the useless thing) disables sync or at least it did on my phone.
bpivk said:
Do you have the battery saving feature enabled and if so check the settings.
Because one of the settings (I don't know which because I disabled the useless thing) disables sync or at least it did on my phone.
Click to expand...
Click to collapse
I have CM7 ROM and I don't use any other special tweaks or settings. The thing is only gmail stops syncing. When I open the sync settings (Accounts & Sync) I often find gmail unchecked, but contacts and everything else syncs just fine. When I set the gmail to sync, everything works until I restart my phone (I have it turned off overnight...).
Hope it described my problems well enough. I have already tried reflashing ROM, GAPPS, deleting my account, cache and all kinds of things I was able to think of. Nothing helped.
I couldn't find such setting. If you mean wi-fi sleep policy I have it set to never. The thing is Gmail sync box is being constantly unchecked whenever I turn off an on again my cell phone...
I seem to have deleted my Google calender (or some part of it) from my android (specs below). I can’t seem to be able to restore it.
I had problems syncing a new calender and was trying to clear all cache etc in order to get it to sync. I went into Settings --> applications --> All --> ‘Calendar’ (I’ve always had two of those, so I took the one with data in it, the other always stands on 0.0B).
I cleared the data, force stopped it and then I pushed Disable. The button went from disable to enable and I restarted my phone thinking I could enable it after restart. After reboot the calendar had disappeared. Meaning: no icon in the ‘applications’ screen, when I go into the settings menu I only have one post named ‘calendar’ (the empty one). Calendar Storage still has content though and when I use widgets they seem to be able to access and sync to my main Google calender. When I use ‘month’ view I can see the different events I have in my calendar but I can’t edit anything from my phone. As soon as I try to actually access it I get the message ‘Unfortunately, TwLauncher has stopped’.
How do I restore, or enable the Calender again? I find it really disturbing that I don’t have a calender icon in ‘application’ anymore and that it seems to have completely disappeared.
I’ve tried clearing data, experimenting with the sync option and rebooting several times. I just can’t seem to get any results though. And I can't find it on play so I can't re-install it. Any insight on this?
Device: GT-I9100 (Samsung Galaxy S2)
Carrier: Telenor
Country / Language: Sweden
OS / Browser / build number (if applicable): ICS 4.0.3/IML74K.XXLPQ
Reinette said:
I seem to have deleted my Google calender (or some part of it) from my android (specs below). I can’t seem to be able to restore it.
I had problems syncing a new calender and was trying to clear all cache etc in order to get it to sync. I went into Settings --> applications --> All --> ‘Calendar’ (I’ve always had two of those, so I took the one with data in it, the other always stands on 0.0B).
I cleared the data, force stopped it and then I pushed Disable. The button went from disable to enable and I restarted my phone thinking I could enable it after restart. After reboot the calendar had disappeared. Meaning: no icon in the ‘applications’ screen, when I go into the settings menu I only have one post named ‘calendar’ (the empty one). Calendar Storage still has content though and when I use widgets they seem to be able to access and sync to my main Google calender. When I use ‘month’ view I can see the different events I have in my calendar but I can’t edit anything from my phone. As soon as I try to actually access it I get the message ‘Unfortunately, TwLauncher has stopped’.
How do I restore, or enable the Calender again? I find it really disturbing that I don’t have a calender icon in ‘application’ anymore and that it seems to have completely disappeared.
I’ve tried clearing data, experimenting with the sync option and rebooting several times. I just can’t seem to get any results though. And I can't find it on play so I can't re-install it. Any insight on this?
Device: GT-I9100 (Samsung Galaxy S2)
Carrier: Telenor
Country / Language: Sweden
OS / Browser / build number (if applicable): ICS 4.0.3/IML74K.XXLPQ
Click to expand...
Click to collapse
First check via Google mail/calendar if u see ur appointments...
If u don't see it there, they wasn't saved it Google account and so just local, which u delete (no restore)
If u see them there, just delete and reactivate ur Google account on ur phone.
CHEERS ;-)
Sent from my Galaxy S2 - I9100 with SensatioN Rom!
Hannibal226 said:
First check via Google mail/calendar if u see ur appointments...
If u don't see it there, they wasn't saved it Google account and so just local, which u delete (no restore)
If u see them there, just delete and reactivate ur Google account on ur phone.
CHEERS ;-)
Sent from my Galaxy S2 - I9100 with SensatioN Rom!
Click to expand...
Click to collapse
Might have worked had it been a sync problem only (my calendar is intact on the web). This however is a problem of the built-in calendar app disappearing. I removed the account and installed it again but the calendar did not appear.
I'm starting to think that factory reset is the only viable option.
Reinette said:
Might have worked had it been a sync problem only (my calendar is intact on the web). This however is a problem of the built-in calendar app disappearing. I removed the account and installed it again but the calendar did not appear.
I'm starting to think that factory reset is the only viable option.
Click to expand...
Click to collapse
Hmm but that's a bit much for just probs like this...
Hmm u checked the options in application > all > calendar and delete data again?
Then also checked if calendar sync is active (I think so but just an idea)
So last option before factory reset would be wiping the dalvik cache
If at all now luck... U can do it.
But would be really strange.
Much success ;-)
Sent from my Galaxy S2 - I9100 with SensatioN Rom!
Lost Calendar Events
Sorry for reviving an old thread, but I have a similar issue/problem
I was syncing and unsyncing with my samsung to google calendars, then the next day I checked, I realized all my events disappeared.
I did not erase anything yet all my events were gone.
I did notice that something was occurring during the period that I lost my data.
I saw that my default Samsung browser on my smart phone went on a refresh loop on google home page. This was an issue on googles end and was resolved eventually.
This was one of google's problems. There would be an issue with google recognizing me logging on the google home page and gmail. This lasted for a week. I wonder if that caused my data to disappear?
There are a few links below describing what happened. I'm wondering if this is an issue with Google, samsung+google, or syncing in general.
if I can recover my lost events that would be great!
It seems like a lot of them has to do with smartphones syncing, which is what I did. Even if there isn’t a solution or a recovery for this, it would be great to at least get an understanding as to why this happened (so i can avoid it in the future). I am currently storing everything local to my phone and havne’t experienced any loss of information. It’s quite disconcerting that if I did use google calendars, at any moment, all my events can go missing.
https://twitter.com/pauliharman/status/232750527979597825
http://productforums.google.com/forum/#!topic/calendar/jJbLThfAuXc
http://productforums.google.com/forum/#!msg/calendar/IE2m9Y96bLE/oAz-BQIkcLMJ
https://productforums.google.com/forum/?fromgroups=#!topic/calendar/P8ClYOAtWSc
Hannibal226 said:
Hmm but that's a bit much for just probs like this...
Hmm u checked the options in application > all > calendar and delete data again?
Then also checked if calendar sync is active (I think so but just an idea)
So last option before factory reset would be wiping the dalvik cache
If at all now luck... U can do it.
But would be really strange.
Much success
Sent from my Galaxy S2 - I9100 with SensatioN Rom!
Click to expand...
Click to collapse
Restore a recent backup, that way the period of events lost will be minimal; only events entered/altered after the time of the backup, obviously (and you can then sync to Google if you like to bring that back up to date).
So far as recovering your lost events goes, I doubt Google will restore an individuals calendar events. Tho you might as well ask them, they might surprise you. That way you then simply restore them to your phone.
Failing that, unless you've got a copy of the db file containing the calendar events still on the phone, can't see how you'd get them back unfortunately.
As to why, I'd be asking Google. I've been keeping my phone/Google calendar synced a couple of times a day over the year and a bit I've had my SGS2 & never had a problem from their end (a couple very early doors caused by me when I had to reset my phone & I hadn't synced to Google before doing the reset).
Thanks Mistah. Unfortunately I didnt make any backups with TiBu or a nandroid at that time.
I've asked google and you are correct, they dont do event restores.
Yes definitely my main concern is why it happened at all? So it never happened to you?....hmmm..
im wondering if it was something on Google's part or something I did.
Before I realized my calendar disappeared, I unsynched and erased the profile on my device so it only had the local calendar, then i synced again.
I wonder if my erasing that profile on my samsung caused the calendar to delete. Or maybe it didn't register or save?
I can't 100% recall if I saved the events on google's calendar or my local. but if I stored on my local, shouldnt the data still be there even after my sync and unsync or google calendar?
MistahBungle said:
Restore a recent backup, that way the period of events lost will be minimal; only events entered/altered after the time of the backup, obviously (and you can then sync to Google if you like to bring that back up to date).
So far as recovering your lost events goes, I doubt Google will restore an individuals calendar events. Tho you might as well ask them, they might surprise you. That way you then simply restore them to your phone.
Failing that, unless you've got a copy of the db file containing the calendar events still on the phone, can't see how you'd get them back unfortunately.
As to why, I'd be asking Google. I've been keeping my phone/Google calendar synced a couple of times a day over the year and a bit I've had my SGS2 & never had a problem from their end (a couple very early doors caused by me when I had to reset my phone & I hadn't synced to Google before doing the reset).
Click to expand...
Click to collapse
Yep. If you remove the Google a/c from your phone completely, it deletes the events attached to that Google a/c in the calendar app. When you add it back, you'll have an empty calendar until you sync it from Google.
So essentially, what's seemed to have happened is you've done that with the a/c on your phone, for whatever reason your events @ Google's end have been nuked, so when you've re-added the a/c back on your phone & gone to sync it, there's been nothing there to sync back to the phone.
If you untick 'show [email protected]' in the calendar app settings (as opposed to removing the a/c outright), exit the app & restart the app you end up with an empty calendar, because it must have a Google a/c linked. If you retick 'show [email protected]' your events show again because simply unticking it doesn't delete anything.
Removing the a/c outright from the phone must purge the DB file(s) (?? I presume) on the phone.
That's the most logical explanation I can come up with given what happened/the order it happened in with your phone.
mikoal said:
Thanks Mistah. Unfortunately I didnt make any backups with TiBu or a nandroid at that time.
I've asked google and you are correct, they dont do event restores.
Yes definitely my main concern is why it happened at all? So it never happened to you?....hmmm..
im wondering if it was something on Google's part or something I did.
Before I realized my calendar disappeared, I unsynched and erased the profile on my device so it only had the local calendar, then i synced again.
I wonder if my erasing that profile on my samsung caused the calendar to delete. Or maybe it didn't register or save?
I can't 100% recall if I saved the events on google's calendar or my local. but if I stored on my local, shouldnt the data still be there even after my sync and unsync or google calendar?
Click to expand...
Click to collapse
I just tried it again. I removed the account from my phone. then resynced it. All the info from the calendar is still there.
Currently i store everything locally and only view local calendar (as you've said, untick google calendar).
Also not sure if this matters, I'm not using google calendars, I'm using samsung's stock calendar planner.
I cant see how removing the account from ur handheld would erase all events from your calendar. Isn't removing the account just deciding not to sync with it?
MistahBungle said:
Yep. If you remove the Google a/c from your phone completely, it deletes the events attached to that Google a/c in the calendar app. When you add it back, you'll have an empty calendar until you sync it from Google.
So essentially, what's seemed to have happened is you've done that with the a/c on your phone, for whatever reason your events @ Google's end have been nuked, so when you've re-added the a/c back on your phone & gone to sync it, there's been nothing there to sync back to the phone.
If you untick 'show [email protected]' in the calendar app settings (as opposed to removing the a/c outright), exit the app & restart the app you end up with an empty calendar, because it must have a Google a/c linked. If you retick 'show [email protected]' your events show again because simply unticking it doesn't delete anything.
Removing the a/c outright from the phone must purge the DB file(s) (?? I presume) on the phone.
That's the most logical explanation I can come up with given what happened/the order it happened in with your phone.
Click to expand...
Click to collapse
That's why I added (?? I presume) to that line in my PP about removing the account potentially wiping the DB files.
I doubt you'll end up finding out what happened/why it happened.
Anyhow, that's all I can offer.
mikoal said:
I cant see how removing the account from ur handheld would erase all events from your calendar. Isn't removing the account just deciding not to sync with it?
Click to expand...
Click to collapse
ya, it was worth a shot to test out that theory.
back to square one i guess.
google is blaming on samsung's app causing the erase when syncing.
MistahBungle said:
That's why I added (?? I presume) to that line in my PP about removing the account potentially wiping the DB files.
I doubt you'll end up finding out what happened/why it happened.
Anyhow, that's all I can offer.
Click to expand...
Click to collapse
Despite what my first points might suggest, this does not seem to just be an issue with the Exchange admin disabling Smart Lock.
First the issue: When I add my work e-mail, it completely disables Smart Lock and all the underlying features with the note "Disabled by administrator".
Of course, this sounds like they have disabled this server side.
The thing is though, that this worked problem free up until recently, when I had to reset my phone and then add my account again.
I checked with the admins and they claimed nothing have been changed on the server.
It also did not affect anyone else using Android phones.
Then I tried removing and re-adding the account on a colleague's phone and now he got the same issue.
Turns out that this only happens with the newest Gmail app. (5.2).
If I uninstall updates and downgrade Gmail to 5.0 or 5.1 ish and then add the Exchange account, I can activate Smart Lock without problems.
It keeps working problem free, even after upgrading the Gmail app.
In short, my testing suggests that this only an issue if you add the Exchange account after upgrading the Gmail app to 5.2.
This workaround is serviceable for now, but it won't work anymore after Android M arrives, as then the system app version will start at 5.2 and can't be downgraded (I tried through adb install, but then everything just started crashing).
Because of this, I thought it might be time to find the actual cause here.
Any tips and suggestions?
Any helpful info I could provide?
Am I even close to being correct in my assumptions of fault?
Since I'm on M preview too, I also hope for a solution....
Does anyone else have an issue with Gmail notifications? Most of the time I receive no notifications about new email until I unlock the phone. Even then they do not always come in quickly. When I open the Gmail app they do come in.
Yes, they will "eventually" come in on their own but way later than they should. I have done every battery/data optimization/exception I can think of and find. This should NOT be happening in 2021! This is not a OnePlus phone and even then my 8T is not this bad. Also, the notification LED does not activate for Gmail while it does for Messages and WhatsApp. I have gone through every possible notification setting on the phone as well as for the Gmail app itself and made sure that using the LED was selected on them all. I hate that Gmail is installed as a system app! WHY???
Another interesting things is that Gmail is NOT listed as the default app. It is not even there as a selection. Messages is installed as a system app and it is listed as the default. WHY?
I am liking the phone, but not receiving notifications for such an essential feature as email is NOT GOOD!
The phone is causing Gmail to go into deep sleep when the screen is locked unnecessarily.
I may have found the solution. To start I went into Settings > accounts just to double check that the toggle for "Automatically sync app data" was turned on and it was. While in the same screen I tapped on my email account and then tapped on "Account sync", Here you can do a manual sync of all the various apps associated with your Google account. SO I tapped on the 3 dots in the top right and tapped on "Sync now" and the only thing that synced immediately was Contacts and maybe one other (can't remember which one. No matter how many times I would retry to do a manual sync the same thing would happen.
So I closed all of this out and went directly into the Gmail app > settings and chose my email account and scrolled down to "Sync Gmail" under the "Data usage" section and unchecked this setting. I rebooted the phone, went back into Gmail > settings my email and re-checked the "Sync Gmail" selection, rebooted again and went back into Settings > accounts > my email account > account sync and all the various apps listed in this section had now synced properly. I could tell by the time stamp for each one. I also did a manual sync again and everything in the list synced up within about 10 seconds! I was happy. I locked my phone, set it down, and within a minute or two I received several emails and the notification chime went off. I'm still not sure if the notification LED lit up or not but I think it did. Hopefully this fixes the issue.
Sometimes it isn't what is selected but the order in which you select things so as not to cause a conflict.
This is one area of Android that I think needs improvement (Samsung is the worst for this) that there are too many settings that seem redundant, counter intuitive, and conflict with one another.
Well, after writing all the previous entries I am still having the same issues with Gmail. On my OnePlus 8T every morning shortly after logging in my emails would come in without any prompting on my part. With my Xperia 1 iii I received NOTHING until I actually opened the Gmail app itself and sure enough there were about 5 emails that popped up! Something is very wrong here. I am not looking forward to a factory reset but I may have no choice. I will say this: If after a factory reset Gmail is still unresponsive I will definitely be sending this thing back!
Can confirm that there is something wrong with gmail. Just gmail. Ive tried 3rd party email apps and they work.
Totally understandable that you would prefer gmail over others. I too would actually prefer my gmail to work. I hope this is fixed in a firmware update.
hotcakes_shinku said:
Can confirm that there is something wrong with gmail. Just gmail. Ive tried 3rd party email apps and they work.
Totally understandable that you would prefer gmail over others. I too would actually prefer my gmail to work. I hope this is fixed in a firmware update.
Click to expand...
Click to collapse
Exactly! I decided to NOT do a factory reset because I feel that it would not help. Instead I just disabled Gmail and installed Bluemail. It has more settings than I care to mess with but at least all my email notifications arrive properly! I am glad that I am not the only one this is happening to. Is there some way to inform Sony directly that they have a problem? I liked it better when Gmail was a Play Store install! I DO NOT like it when ANY apps are installed as a service!
I chatted with Sony Tech support. They went through all the usual settings that I already tried several times. They escalated it so we will see what happens. One thing I have noticed, which may be relevant or not, is that with Blue Mail installed when I do get an email both Gmail and Blue Mail give a notification????
To me it sounds like you just need to whitelist the app in your battery saving settings.
aapok98 said:
To me it sounds like you just need to whitelist the app in your battery saving settings.
Click to expand...
Click to collapse
Please, while I can appreciate the suggestion, do you think I did not already go through every possible setting and permutation in an attempt to resolve this issue? I am a retired IT Systems Engineer and I have used cell phones for so long it's not even funny. Not to mention there are others experiencing the exact same thing! However, I was forced to do a factory reset this morning so "maybe" things will start to work properly.
I have exact Gmail notification issue when I got my X1iii but the issue resolved after I upgraded to 61.0.A.11.92 this morning. After switched off Gmail sync off and on and turn on the notification on individual labels, the notification was back.
It might be the previous firmware used a bad GMSCore. My device is a XQ-BC62. BTW the install step 3 did take some time but my phone didn't stuck at that step and it went through.
I have different problem with gmail notifications. For some reason notifications are always coming when in the evening I plug in my phone for charging. After a moment gmail notifications are coming. And this happens all the time.
??? Sony?
Guys please treat everyone with respect.
We are here to help each other and exchange our experience. Not to offend each other.
Thank you.
I have had a few days now with the last update = .92 and so far it appears as if my Gmail notifications are coming in exactly as they should when the phone is locked. For sure much better than before the update. So whatever Sony did in this update (besides the security update) is working for me. The LED is also lighting up properly for Gmail! Good job Sony!
Gmail still does not sync automatically for me on the .92 update. Factory reset and it works for a bit but once after a while it stops. No amount of uninstalling GMS updates or clearing its data will get it working again, so I have no idea what happened.
darwinmach said:
Gmail still does not sync automatically for me on the .92 update. Factory reset and it works for a bit but once after a while it stops. No amount of uninstalling GMS updates or clearing its data will get it working again, so I have no idea what happened.
Click to expand...
Click to collapse
Have to ask...you did give Gmail unlimited data? Also, you did set Gmail to "excepted" in battery settings?
Even the most experienced sometimes miss things.
jaseman said:
Have to ask...you did give Gmail unlimited data? Also, you did set Gmail to "excepted" in battery settings?
Even the most experienced sometimes miss things.
Click to expand...
Click to collapse
Just to be sure, I went through and double checked that Gmail, Google Play Services, and Google Services Framework all had:
* Battery/Power-saving Feature: Excepted
* Unrestricted data: Enabled
Still didn't resolve my sync issues
Did you try this: settings > accounts > tap your email google account > account sync > has everything synced fairly recently? Any of them appear to be stuck, not spinning? Top right 3 dots sync now, does everything finish syncing?
Just adding that I noticed this problem after the .92 update. I'm not sure if its there before. So the .92 didn't solve the issue on my end, glad it solved yours.
aapok98 said:
I haven't had issues with gmail but I have had the kind of issues described in OP with other phone models and similar apps and the cause was a bit too eager battery optimization settings so I honestly thought it was the cause here too.
If it was not, then it is a shame I couldn't help.
But as a response to your comment: No. I don't think people here are idiots. I just think you are one.
Click to expand...
Click to collapse
You make it sound like you think people are idiots because as already mentioned in the FIRST POST, he already excepted his apps from battery optimization. If you still ask people if they have done so, you obviously think we are idiots, since you ask a question that has already been answered. Grow up please.
Edit: Here let me quote it for you:
I have done every battery/data optimization/exception I can think of and find.
Click to expand...
Click to collapse
THREAD CLEANED
Hi! Just popping in to leave a reminder for everyone: keep it civil, on-topic and refrain from responding to posts that you think are offensive or hateful. Just report if you feel something isn't right and let us take care of it for you.
Regards,
shadowstep
Forum Moderator
Testing out a potential fix which seems to be working for now.
I found out that my phone backup isn't working either. Manually pressing the button, the backup keeps telling it failed and asks me to try again later. Searching online, there are some that suggest to remove the screen lock to see if backup starts working again.
After I removed my screen lock, I cleared cache/storage of Google Play Services, Google Services Framework and Gmail. Then I rebooted my phone and left it a while to let it fully boot. I can now backup my phone, and I am getting my Gmail notifications. Now I am observing to see if this is permanent..
If the fix is permanent, at least on my end, it seems that Sony's build of android has buggy encryption. This was an issue with other brands too.
Update on my problem. Firstly, after trying the above, I noticed a few days later that in general I wasn't getting notifications from anything. I concluded that I messed up Google Services too much and therefore factory reset my phone.
After that and readding my google account, My notifications was fixed, except Gmail still wasn't getting notifications, but phone backup started working. I was about to give up and use another email app, when today the September security update arrived in 61.0.A.14.3 update. Being desperate to try anything I updated without hesitation.
This seems to fix the problem and I am getting my gmail notifications.
Not getting my hopes up too much and just continue monitoring but I hope this the end of my google problems.