Again, without error messages, test data, and exact commands, I can't tell. It seems to work pretty well on my dummy data.
I'd suggest taking a good look at the documentation of glm.predict
to understand the important parameters. If you still can't get it to work, post a new question with a clear description of what you tried (a reprex) and what the error message is.