The type or namespace name 'SocketUdpNativeDynamic' could not be found?

Just imported the latest version of photon voice and i get this while building for android.
Assets\Photon Unity Networking\PhotonChatApi\ChatPeer.cs(56,82): error CS0246: The type or namespace name 'SocketUdpNativeDynamic' could not be found (are you missing a using directive or an assembly reference?)

Comments

  • Hi @KingMaker,

    Thank you for choosing Photon!

    This is an issue in PUN Classic.
    Although Photon Voice Classic contains PUN Classic, Photon Voice Classic is quite outdated and discontinued.
    PUN Classic received a few more updates after Photon Voice Classic.

    What we suggest:

    A- Recommended: migrated to Photon Voice 2 which contains PUN 2. (so also migrate from PUN Classic to PUN 2)
    B- If you do not use Photon Chat, remove Photon Chat API folder/files.
    C- Update PUN Classic by importing it on top of Photon Voice Classic and retry.

    There is no guarantee C would work but we highly highly recommend migrating to Photon Voice 2 as Photon Voice Classic won't receive updates anymore.
  • Update due to a ticket we received:

    When your project uses Photon Voice 2, you can keep updating it with the Voice 2 package. It does not make sense to update just PUN 2 into the project (as files that rely on one another will not be updated in sync).

    So either you update by using Photon Voice 2 as before or you delete the Photon Voice related folders from the project before you update just PUN 2.

    PUN 2 also includes the Chat API. The new version does not have the string SocketUdpNativeDynamic in it's code.
Sign In or Register to comment.