-
Notifications
You must be signed in to change notification settings - Fork 5
Android device registration #8
Comments
No it is /device/gcm/app_open if you are using the 1.2fixes branch, otherwise it is not fully supported. I am working on upgrading the 1.2fixes branch, but have gotten sidetracked with other projects. Any pull requests are welcome to it. |
Thank you for your answer! |
Hmm looking at the changelog for Sensio framework extra bundle I may be able to change the dependency to 2.1 I will look at this tonight and see if anything breaks. |
@alexbaciu actually if you use |
@alexbaciu let me know if the lastet commits on the 1.2 branch works for you. |
@bassrock it worked ok, thank you. I will start using this right now. |
It seems to be some problems after the composer runs ok:
"InvalidConfigurationException: The child node "appevent" at path "dab_push_notifications.class.model" must be configured" Can you advice please? |
Yea the new version uses a new app event class to starry monitoring when people open close and terminate your app. The docs should show you how to setup the new class in the "creating your classes" section. If not guess I missed some docs!
|
Ok, please notify me, if you can, when new documentation is available. |
@alexbaciu it is right here: https://github.com/DABSquared/DABSquaredPushNotificationsBundle/blob/fixes/1.2/Resources/doc/2-mapping_orm.md When reading the docs make sure you are on the 1.2 branch as it has been mostly updated. |
Hello, I've added the new entity, but right now I have a new problem: InvalidConfigurationException: The child node "apps" at path "dab_push_notifications" must be configured. |
make sure your config matches the config structure here: |
Thank you, the installation went ok now. There is an error when I am trying to update the database structure starting from the new created entities: php app/console --env=dev doctrine:schema:update --dump-sql PHP Fatal error: Declaration of DABSquared\PushNotificationsBundle\Model\Device::addMessage() must be compatible with that of DABSquared\PushNotificationsBundle\Model\DeviceInterface::addMessage() in /..../Symfony/vendor/dabsquared/dabsquared-push-notifications-bundle/DABSquared/PushNotificationsBundle/Model/Device.php on line 18 |
@alexbaciu i Just implemented some changes, let me know if you still have a problem with that. |
Hello, Now there is another problem: guestmob@thinkcentre:/var/www/alex_guestmob/guestmobx/Symfony$ php app/console --env=dev doctrine:schema:update --dump-sqlPHP Fatal error: Declaration of DABSquared\PushNotificationsBundle\Model\Message::setDevice() must be compatible with that of DABSquared\PushNotificationsBundle\Model\MessageInterface::setDevice() in /.../vendor/dabsquared/dabsquared-push-notifications-bundle/DABSquared/PushNotificationsBundle/Model/Message.php on line 17 |
@alexbaciu go ahead and try now. Sorry for all the issues! |
No problem. I will try to help you to make it stable. I am having another problem now:
namespace Acme\UserBundle\Entity; use Symfony\Component\Validator\Constraints as Assert; use DABSquared\PushNotificationsBundle\Model\UserDeviceInterface; use Doctrine\ORM\Mapping as ORM; /**
I am receiving the following error: PHP Fatal error: Declaration of Acme\UserBundle\Entity\Device::addMessage() must be compatible with that of DABSquared\PushNotificationsBundle\Model\DeviceInterface::addMessage() in ../src/Acme/UserBundle/Entity/Device.php on line 19 Probably the documentation below needs to be changed. |
what does your \Acme\UserBundle\Entity\Message look like? |
Hello my Message class looks like this: createdAt = new \DateTime(); $this->updatedAt = new \DateTime(); } /** - @Orm\PreUpdate */ public function PreUpdate() { $this->updatedAt = new \DateTime(); } /** - @Orm\ManyToOne(targetEntity="\Acme\UserBundle\Entity\Device", inversedBy="messages") */ protected $device; /** - Get id * - @return integer */ public function getId() { return $this->id; } /** - Get device * - @return \Acme\UserBundle\Entity\Device */ public function getDevice() { return $this->device; } } |
hmm ok. It looks like the interface classes aren't inheriting down. Is it possible for you to fork, fix and submit a pull request? |
Hello,
FatalErrorException: Error: Call to a member function set() on a non-object in /var/www/...../Symfony/vendor/dabsquared/dabsquared-push-notifications-bundle/DABSquared/PushNotificationsBundle/Controller/PushAdminController.php line 98 Thank you! |
Ah! I didn't think, but you need to configure JMSDIExtra Bundle appropriately, something like this:
If you want to submit a pull request to remove this dependency I would be happy to merge it. |
Ok, thank you.
|
Hello,
I have a quick question about Android device registration: what is the endpoint url for registration requests? The same as the IOS one?
Thank you
The text was updated successfully, but these errors were encountered: