Comments (14)
The issue was proposed in #11 also and was resolved as per my knowledge. I haven't released a new version and just modified the apk files to new ones when the issue was resolved. So, if you are using apk published before that then consider downloading again the apk file from releases. Most probably it should be resolved. If not you can open the issue again.
Now coming over the offline play part, I haven't encountered such a problem yet, some error in music or something might be the cause. So, if you could provide the app log then it will be much helpful.
Finally, about the google-services json file, it contains details like the database name, authorization token, etc which shouldn't be provided publically. What you can do about it is visit firebase and set up things there. They will ask about package name, app name, etc. which you can enter depending upon changes you make to the app or you can enter the current app details. Everything else is already set up in code you just have to download the json file which they will provide.
I will think of something about using a demo json from any other account or something in the future. Or maybe if you could provide one for the repo then you can open a pull request, it will be helpful. Lemme know if you face any issue.
PS: I have added the google-services.json file in the latest commit 3047af6.
from blackhole.
You can recreate this scenario by stopping the music through the notification center and then clearing the cache then opening any other app. After these steps, relaunching the app made the app crash and stuck in the splash screen.
from blackhole.
Still unable to reproduce the issue. Can you reproduce it? And are you able to build the app? Can you provide app logs? As I'm unable to reproduce only app logs can help.
from blackhole.
I was not able to build the app due to the absence of Google-services.json file. After building the app I will share the app log. This issue appeared after the music being played in the background for around 10 s. And before closing the app a session of playing an offline song then the online song in the background was done.
from blackhole.
I have already uploaded the google-services.json file. You can try to build and share applog.
from blackhole.
The build was successful but gave some errors. And the build debug app's home music suggestion were not coming.
from blackhole.
Those are initial warnings related to the use of deprecated API and are package-related. You can ignore them. Now coming over the home-screen part. Actually, those playlists are in the database. And as I made a dummy database yesterday so that you can build it, I forgot to include those. I have added them now, see and lemme know if it's working or not.
from blackhole.
@Sangwan5688 Hi can you please explain how you did the backend database ,analytics, update notification configurations for the app in firebase and how can one do their own backend to this app and synchronise .
from blackhole.
@asifmhdashik You have to set up a firebase database with the following fields: "LatestVersion": used by the app to check if your version is latest or not", "LatestLink": Link to download latest apk, "TopStatus"(newly added): Used to check if Spotify top songs are accessible or not, "Playlists": This contains details of the playlists shown on the home screen.
You can create your own Firebase project and replace the google-services.json file in the repo with the one provided for your project. You don't need to do any other code change, everything else is already done. Then just set up a real-time database and add the following details:
{
"LatestLink" : "https://github.com/Sangwan5688/BlackHole/releases/tag/v1.5",
"LatestVersion" : "1.5",
"Playlists" : {
"Assamese" : [ {
"id" : "WJy2xBPol-4wkg5tVhI3fw__",
"image" : "",
"title" : "Assamese Top Songs",
"type" : "Assamese"
}, {
"id" : "1YEQu,ZfmLDuCJW60TJk1Q__",
"image" : "",
"title" : "Assamese Chartbusters",
"type" : "Assamese"
}, {
"id" : "PT1sXxKor6HfemJ68FuXsA__",
"image" : "",
"title" : "Assamese - Top JioTunes",
"type" : "Assamese"
}, {
"id" : "DfYOM7jQafBieSJqt9HmOQ__",
"image" : "",
"title" : "Now Trending - Axomiya",
"type" : "Assamese"
} ],
"Bengali" : [ {
"id" : "zDijQvMQA4w_",
"image" : "",
"title" : "Bengali Top Songs",
"type" : "Bengali"
}, {
"id" : "wbSW,qO528zfemJ68FuXsA__",
"image" : "",
"title" : "Bengali Chartbusters",
"type" : "Bengali"
}, {
"id" : "JLj50IH5W6vfemJ68FuXsA__",
"image" : "",
"title" : "Bengali - Top JioTunes",
"type" : "Bengali"
}, {
"id" : "nB0KBl0kdxbuCJW60TJk1Q__",
"image" : "",
"title" : "Now Trending - Bengali",
"type" : "Bengali"
}, {
"id" : "VaiE57rUJm7uCJW60TJk1Q__",
"image" : "",
"title" : "Taaza Sur",
"type" : "Bengali"
} ],
"Bhojpuri" : [ {
"id" : ",RCpjh,hgVE_",
"image" : "",
"title" : "Bhojpuri Top Songs",
"type" : "Bhojpuri"
}, {
"id" : "slbY3IGmXNc_",
"image" : "",
"title" : "Bhojpuri Chartbusters",
"type" : "Bhojpuri"
}, {
"id" : "3R07zeUU5iXc1EngHtQQ2g__",
"image" : "",
"title" : "Bhojpuri - Top JioTunes",
"type" : "Bhojpuri"
}, {
"id" : "QNWLdtZR143c1EngHtQQ2g__",
"image" : "",
"title" : "Now Trending - Bhojpuri",
"type" : "Bhojpuri"
}, {
"id" : "UOHWB80vDO7c1EngHtQQ2g__",
"image" : "",
"title" : "Whats New - Bhojpuri",
"type" : "Bhojpuri"
}, {
"id" : "zjTR4eVQMY4_",
"image" : "",
"title" : "Taaza Hits - Bhojpuri",
"type" : "Bhojpuri"
} ],
"English" : [ {
"id" : "Ns2UZo9qDvI_",
"image" : "",
"title" : "Fresh Music",
"type" : "English"
}, {
"id" : "LdbVc1Z5i9E_",
"image" : "",
"title" : "English Top Songs",
"type" : "English"
}, {
"id" : "1HiqW,xnqZTfemJ68FuXsA__",
"image" : "",
"title" : "English Chartbusters",
"type" : "English"
}, {
"id" : "xXiMISqMjsrfemJ68FuXsA__",
"image" : "",
"title" : "English - Top JioTunes",
"type" : "English"
}, {
"id" : "pm49jiq,CNs_",
"image" : "",
"title" : "Now Trending - English",
"type" : "English"
}, {
"id" : "QOuPSQ,-ztdieSJqt9HmOQ__",
"image" : "",
"title" : "Whats New - English",
"type" : "English"
} ],
"Gujarati" : [ {
"id" : "lD9c76kSeqc_",
"image" : "",
"title" : "Gujarati Top Songs",
"type" : "Gujarati"
}, {
"id" : "dt0CY05R,q0_",
"image" : "",
"title" : "Gujarati Chartbusters",
"type" : "Gujarati"
} ],
"Haryanvi" : [ {
"id" : "ar5lExlDmbwwkg5tVhI3fw__",
"image" : "",
"title" : "Haryanvi Top Songs",
"type" : "Haryanvi"
}, {
"id" : "UTfG1mXsU8vfemJ68FuXsA__",
"image" : "",
"title" : "Haryanvi Chartbusters",
"type" : "Haryanvi"
}, {
"id" : "xgyTegenCljc1EngHtQQ2g__",
"image" : "",
"title" : "Haryanvi - Top JioTunes",
"type" : "Haryanvi"
}, {
"id" : "AgSp5mOBxUCO0eMLZZxqsA__",
"image" : "",
"title" : "Now Trending - Haryanvi",
"type" : "Haryanvi"
}, {
"id" : "8U17zJGcV-YGSw2I1RxdhQ__",
"image" : "",
"title" : "Jama Taaza",
"type" : "Haryanvi"
} ],
"Hindi" : [ {
"id" : "Me5RridRfDk_",
"image" : "",
"title" : "Taaza Tunes",
"type" : "Hindi"
}, {
"id" : "8MT-LQlP35c_",
"image" : "",
"title" : "Hindi Top Songs",
"type" : "Hindi"
}, {
"id" : "u-75xwHI4ks_",
"image" : "",
"title" : "Hindi Chartbusters",
"type" : "Hindi"
}, {
"id" : "AZNZNH1EwNjfemJ68FuXsA__",
"image" : "",
"title" : "Hindi - Top JioTunes",
"type" : "Hindi"
}, {
"id" : "BECHl0fsh08_",
"image" : "",
"title" : "Now Trending",
"type" : "Hindi"
}, {
"id" : "fdThzcZtxGk_",
"image" : "",
"title" : "Whats New - Hindi",
"type" : "Hindi"
}, {
"id" : "I3kvhipIy73uCJW60TJk1Q__",
"image" : "",
"title" : "Trending Today",
"type" : "Hindi"
}, {
"id" : "zvYYPLOvojJFo9wdEAzFBA__",
"image" : "",
"title" : "VYRL Top 20",
"type" : "Hindi"
}, {
"id" : "znKA,YavndBuOxiEGmm6lQ__",
"image" : "",
"title" : "CHARTS SAAVN Top Songs",
"type" : "Hindi"
}, {
"id" : "GR454ZJAZAtFo9wdEAzFBA__",
"image" : "",
"title" : "Saturday Sizzlers - Hindi",
"type" : "Hindi"
}, {
"id" : "m9Qkal5S733ufxkxMEIbIw__",
"image" : "",
"title" : "Romantic Top 40",
"type" : "Hindi"
} ],
"Kannada" : [ {
"id" : "FnWfzTurhhg_",
"image" : "",
"title" : "Kannada Top Songs",
"type" : "Kannada"
}, {
"id" : "t,kiDev93xw_",
"image" : "",
"title" : "Kannada Chartbusters",
"type" : "Kannada"
}, {
"id" : "f2MTcdffgLxFo9wdEAzFBA__",
"image" : "",
"title" : "Kannada - Top JioTunes",
"type" : "Kannada"
}, {
"id" : "DBmXITIQPdQ_",
"image" : "",
"title" : "Now Trending - Kannada",
"type" : "Kannada"
}, {
"id" : "g5mZ9q4PcTBieSJqt9HmOQ__",
"image" : "",
"title" : "Whats New - Kannada",
"type" : "Kannada"
} ],
"Malayalam" : [ {
"id" : "th5xS,pbZQ0_",
"image" : "",
"title" : "Malayalam Top Songs",
"type" : "Malayalam"
}, {
"id" : "GKvj7T0MXhM_",
"image" : "",
"title" : "Malayalam Chartbusters",
"type" : "Malayalam"
}, {
"id" : "-S4ufuY-Ox4wkg5tVhI3fw__",
"image" : "",
"title" : "Malayalam - Top JioTunes",
"type" : "Malayalam"
}, {
"id" : "H-9bnU8t0nNieSJqt9HmOQ__",
"image" : "",
"title" : "Now Trending - Malayalam",
"type" : "Malayalam"
}, {
"id" : "DNAD3ETbCANuOxiEGmm6lQ__",
"image" : "",
"title" : "Whats New - Malayalam",
"type" : "Malayalam"
} ],
"Marathi" : [ {
"id" : "ZO-X4cZZm64_",
"image" : "",
"title" : "Marathi Top Songs",
"type" : "Marathi"
}, {
"id" : "17PkoGEuBhQ_",
"image" : "",
"title" : "Marathi Chartbusters",
"type" : "Marathi"
}, {
"id" : "syJsukt5XNXufxkxMEIbIw__",
"image" : "",
"title" : "Marathi - Top JioTunes",
"type" : "Marathi"
}, {
"id" : "xytNw85V1XnuCJW60TJk1Q__",
"image" : "",
"title" : "Whats New - Marathi",
"type" : "Marathi"
}, {
"id" : "d7PD2xegNXs_",
"image" : "",
"title" : "Ekdum Kadak",
"type" : "Marathi"
} ],
"Odia" : [ {
"id" : "uEMtMB9bLAI_",
"image" : "",
"title" : "Odia Top Songs",
"type" : "Odia"
}, {
"id" : "wzBigaZ0A28_",
"image" : "",
"title" : "Odia Chartbusters",
"type" : "Odia"
}, {
"id" : "YUUKeLZXFqEwkg5tVhI3fw__",
"image" : "",
"title" : "Odia - Top JioTunes",
"type" : "Odia"
} ],
"Punjabi" : [ {
"id" : "W6DUe-fP3X8_",
"image" : "",
"title" : "Punjabi Top Songs",
"type" : "Punjabi"
}, {
"id" : "LCpVHbpXopo_",
"image" : "",
"title" : "Punjabi Chartbusters",
"type" : "Punjabi"
}, {
"id" : "mzDerWPsSwiO0eMLZZxqsA__",
"image" : "",
"title" : "Punjabi - Top JioTunes",
"type" : "Punjabi"
}, {
"id" : "Vy34km3okmQ_",
"image" : "",
"title" : "Now Trending - Punjabi",
"type" : "Punjabi"
}, {
"id" : "27Civs60nXvuCJW60TJk1Q__",
"image" : "",
"title" : "Whats New - Punjabi",
"type" : "Punjabi"
}, {
"id" : "q0-Wls,1W9DfemJ68FuXsA__",
"image" : "",
"title" : "Taaza Taaza",
"type" : "Punjabi"
} ],
"Rajasthani" : [ {
"id" : "Xm5PW-mxs4c_",
"image" : "",
"title" : "Rajasthani Top Songs",
"type" : "Rajasthani"
}, {
"id" : "Wl2GAbR3OZjc1EngHtQQ2g__",
"image" : "",
"title" : "Rajasthani - Top JioTunes",
"type" : "Rajasthani"
} ],
"Tamil" : [ {
"id" : "x7NaWNE3kRw_",
"image" : "",
"title" : "Tamil Top Songs",
"type" : "Tamil"
}, {
"id" : "kva6nFnoo2o_",
"image" : "",
"title" : "Tamil Chartbusters",
"type" : "Tamil"
}, {
"id" : "a3554I8fWyIwkg5tVhI3fw__",
"image" : "",
"title" : "Tamil - Top JioTunes",
"type" : "Tamil"
}, {
"id" : "Qh3xJvaftt0_",
"image" : "",
"title" : "Now Trending - Tamil",
"type" : "Tamil"
}, {
"id" : "gO4Teh5SX6fufxkxMEIbIw__",
"image" : "",
"title" : "Whats New - Tamil",
"type" : "Tamil"
} ],
"Telugu" : [ {
"id" : "C3TvSMCoP2A_",
"image" : "",
"title" : "Telugu Top Songs",
"type" : "Telugu"
}, {
"id" : "j2,VLFcNmrA_",
"image" : "",
"title" : "Telugu Chartbusters",
"type" : "Telugu"
}, {
"id" : "bvTMbqGnNc9ieSJqt9HmOQ__",
"image" : "",
"title" : "Telugu - Top JioTunes",
"type" : "Telugu"
}, {
"id" : "vid44GJ,K8FieSJqt9HmOQ__",
"image" : "",
"title" : "Now Trending - Telugu",
"type" : "Telugu"
}, {
"id" : "m702rVTipMjuCJW60TJk1Q__",
"image" : "",
"title" : "Whats New - Telugu",
"type" : "Telugu"
}, {
"id" : "bDjUXq26B5Y_",
"image" : "",
"title" : "Kevvu Keka",
"type" : "Telugu"
} ],
"Urdu" : [ {
"id" : "Vzehd0ZQty4_",
"image" : "",
"title" : "Urdu Top Songs",
"type" : "Urdu"
}, {
"id" : "rt7tHdMheXXuCJW60TJk1Q__",
"image" : "",
"title" : "Urdu - Top JioTunes",
"type" : "Urdu"
} ]
},
"TopStatus" : true,
}
from blackhole.
I think the app stuck in splash screen issue was solved in version 1.5 because I expirienced this bug only in 1.4 and was unable to recreate it on the emulator. But offline songs listed my music, after 18 songs are not being played and I will share you the log. I can share more.
from blackhole.
Look like there's something wrong with the 7th song in your "My Music" because of which the loop is breaking and is not reading any other songs after that. Can you look over the 7th songs if there's something special about it like it's missing any name or doesn't have an artist name or something like that? I will also look over the code so that such cases don't cause any issues later on.
The other error was caused because I mistakenly wrote "appVersion" as "double" in the database instead of "string". I have corrected it now.
Also, If you have multiple issues like "offline music not playing" and "app stuck on splash screen" then create different issues for each one of them. Mixing everything in one issue is not suggested. And as this issue is related to the "app being stuck on splash screen" which is already resolved, I will close this issue soon.
from blackhole.
@Sangwan5688 Thank you for sharing .Do I need a specific document ID or can I auto ID it and is there any more changes I need to make in this database.
from blackhole.
@asifmhdashik Do not create "Firebase Database", create "Realtime Database". Then it will automatically generate a name. If you are using the "google-services.json" file of the same firebase then there's no need to edit it. If you want to use your own database then set up a firebase project and they will give a "google-services.json" file. Use that file then when you create a database it will automatically connect to it. No need to change the database name.
It will look something like this:
from blackhole.
I am closing this issue as the main issue is already resolved. About the part of not playing some offline music, please mention future comments in #18
from blackhole.
Related Issues (20)
- MissingPluginException on Windows Build HOT 1
- Radio Never Plays Audio HOT 3
- Apps closes if I go to My music HOT 4
- add Saavan 'For you' sort of thing and if possible add an option similar to stats for nerds
- gradle build fail
- CLICK ON THE ABOVE RESPONSE BELOW
- Remove song and mini player HOT 2
- Restore Backup HOT 2
- Copycats detected on play store HOT 3
- Add cover like spotify on sending song on snapchat
- App taking much time to open
- No sound when song is changed like wt so ever
- Thumbnail loading problem HOT 1
- Addition of Extra tweaks to Equalizer function
- [Bug] Can't listen to songs with long content
- YouTube audio download doesn't show-up in music tab
- different song played when clicked on a particular song HOT 2
- Increasing Delay in Song Start Time with Continued Usage in Open Source Music Player
- Songs do not download HOT 1
- Home screen's "YouTube" tab not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blackhole.