I know in my heart I'm doing something wrong here:
Push notification could not displayed in mvc
What is the best way to deal with this?
I know in my heart I'm doing something wrong here:
Push notification could not displayed in mvc
What is the best way to deal with this?
You shouldn't post something that's not an answer as an answer.
It will get down-voted and eventually deleted. In the end, if you keep doing it, it may get you banned for posting more answers.
So it's not a great idea.
If you need to get more information from the OP (which was the gist of your hint), comments are the proper place for that.
In your "answer":
This is not an answer, just a helpful hint. Amend your code
notificationHub.client.notify = function (message) { console.log(message); // Add this line here if (message && message.toLowerCase() == "added") { updateNotificationCount(); } }
What do you see in the console? Do you include the following in your include statements for scripts (sorry don't know how to do the tags around it) /signalr/hubs
Neither was an attempt to answer the question, just questions and comments seeking clarification from the OP.
Your own comment above ("The thing is, I think I can help him and could possibly change my answer to the be the answer") says that you were trying to get more information from the OP, to hopefully edit your post into a actual attempt to answer later on.
Answers are not a place to engage in dialog with the OP and try to get more information to produce an answer later on.
console.log()
call. The other bits were questions.