0xf104a / NextcloudServices

Android app to send notifications from Nextcloud without using GCM(Google cloud messaging)
GNU General Public License v3.0
65 stars 11 forks source link

Supporting nextcloud instances installed in subdirectories #7

Closed penguin86 closed 3 years ago

penguin86 commented 3 years ago

Hello Andrewerr! Thank you very much for this app, I'm using an AOSP rom without google services and I was without notifications for moths before discovering your app! Unfortunately, it seems not to work with nextcloud instances installed in subdirectories like mine (e.g. https://my.host/nextcloud) because the whole "my.host/nextcloud" string was sent in the Host header. I made a little fix, I hope it will be useful to someone else. I also removed the "https://" part of the url in case someone dumb like me ( XD ) writes the complete URL. Have a nice day!

0xf104a commented 3 years ago

Hello. Thank you very much for solving this issues. I will slightly change your code to match with what I promised in issue #5, so a switch for using insecure connection will be added. Have a nice day too :)